I have a .NET assembly open by COM, and I want to create a custom QueryInterface, otherwise my class will have to implement many interfaces.
Currently my implementation is like this
[ComVisible(true]
[ProgId("SomeLib.SomeClass")]
[Guid("516E4529-38F1-44EE-B340-ABFA498DC922")]
public class MyClass : Interface1, Interface2......, etc
I want my class not to implement these interfaces, but when the QueryInterface is called to return an object that implements the requested interface. I know this function exists for the .NET framework 4.0 (see ICustomQueryInterface ) Unfortunately, I need to do this in 3.5
source
share