Interoperability (C# Programming Guide)
Interoperability enables you to preserve and take advantage of existing investments in unmanaged code. Code that runs under the control of the common language runtime (CLR) is called managed code, and code that runs outside the CLR is called unmanaged code. COM, COM+, C++ components, ActiveX components, and Microsoft Windows API are examples of unmanaged code.
.NET enables interoperability with unmanaged code through platform invoke services, the System.Runtime.InteropServices namespace, C++ interoperability, and COM interoperability (COM interop).
In This Section
Describes methods to interoperate between C# managed code and unmanaged code.
How to access Office interop objects by using C# features
Describes features that are introduced in Visual C# to facilitate Office programming.
How to use indexed properties in COM interop programming
Describes how to use indexed properties to access COM properties that have parameters.
How to use platform invoke to play a WAV file
Describes how to use platform invoke services to play a .wav sound file on the Windows operating system.
Walkthrough: Office Programming
Shows how to create an Excel workbook and a Word document that contains a link to the workbook.
Example COM Class
Demonstrates how to expose a C# class as a COM object.
C# Language Specification
Submit and view feedback for