Accessing underlying managed object through a COM interface

Posted by mfeingold on Stack Overflow See other posts from Stack Overflow or by mfeingold
Published on 2010-04-02T16:56:37Z Indexed on 2010/04/02 17:03 UTC
Read the original article Hit count: 339

Filed under:
|

I have a third party assembly with a public abstract class implementing a certain COM interface. Something to the effect of

[ComVisible(true)]
public abstract class SomeClass: ISomeInterface
{
  ....
  public void Method1() {...}
}

The actual object is an internal object extending the SomeClass and is instantiated by the third party code

Is there a way to access public methods of this class if all I have is the CCW to the ISomeInterface?

© Stack Overflow or respective owner

Related posts about c#

Related posts about com-interop