ABSTRACT

In Depth The .NET Framework was designed with interoperability in mind. By interoperability, I don’t just mean across different languages (such as C#, VB.NET, Perl.NET, and so on), but also interoperability between managed and unmanaged code. Interoperability with unmanaged code is very important because it provides a means for integrating existing COM components with the new .NET code and vice versa. In this chapter, you will learn how to leverage .NET interoperability to consume COM objects in managed code, how to expose .NET classes to COM components, and how to access unmanaged DLLs in managed code.