How to hide GetType() method from COM?
- by ticky
I made an automation Add-In for Excel, and I made several functions (formulas).
I have a class which header looks like this (it is COM visible):
[ClassInterface(ClassInterfaceType.AutoDual)]
[ComVisible(true)]
public class Functions
{}
In a list of methods, I see:
ToString(), Equals(), GetHashCode() and GetType() methods.
Since all methods…