How can I add functionality to COM object in c#?
问题 I am new to COM and c# and I would like to add functionality to a COM object that is exposed by a third-party program. Initially my intention was to inherit from the COM object class, but I found out it was not so straight forward (for example here). Presently, I have two interfaces (namely IComAuto and ComAuto ) and an associated class ( ComAutoClass ). To add my custom methods to ComAuto objects, I have created a class ComObjectWrapper that inherits from this interface and implements it by