View Single Post
  #2   Report Post  
Posted to microsoft.public.dotnet.framework.interop,microsoft.public.excel.programming
Dmytro Lapshyn [MVP] Dmytro Lapshyn [MVP] is offline
external usenet poster
 
Posts: 1
Default Hiding Methods in Automation Add-In

Hi Matthew,

Check that the public interface is marked as
ComInterfaceType.InterfaceIsDual or at least
ComInterfaceType.InterfaceIsDispatch (with the [InterfaceType] attribute).

--
Regards,
Dmytro Lapshyn [MVP]
http://blogs.vbcity.com/DmytroL

"Matthew Wieder" wrote in message
...
In VS 2005 and Excel 2003. I am writing an Automation Add-In in C# and
don't
want to expose the Object methods (GetHashCode, GetType etc.) to end users
to
put in their cell formulas. A post he
http://groups.google.com/group/micro...6a59ead000e62?

suggests marking the class as ClassInterfaceType.None and implementing a
public interface with just the desired methods but this does not work
(maybe
it worked in .NET 1.1). Help?