O'Reilly logo

.NET and COM: The Complete Interoperability Guide by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required