Chapter 17. Implementing .NET Interfaces for Type Compatibility
In This Chapter
• Class Interfaces
• Interface Inheritance
• Considerations for Visual C++ Programmers
• Considerations for Visual Basic 6 Programmers
To conclude our examination of developing COM components that are exposed to .NET, we’re going to focus on implementing .NET interfaces in unmanaged code. A .NET interface is any interface defined in metadata that’s not marked with the ComImportAttribute
pseudo-custom attribute.
Just as a .NET class that implements a COM interface is sometimes said to be a “COM-compatible” class, a COM class that implements a .NET interface could be called a “.NET-compatible” class. This scenario is much rarer than the reverse, however, because ...
Get .NET and COM: The Complete Interoperability Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.