Summary

The ability to communicate with legacy COM applications is absolutely essential for some C# development projects. Through COM Interop, a C# program can call methods of any COM component. The process of making this happen involves both early and late binding techniques.

A .NET component may also be exposed as a COM component. The C# component doesn't need anything special within the code. However, there are utilities that register the C# component and generate a type library.

C# provides full support for COM+ services. By inheriting from the System.EnterpriseServices.ComPlusServices class, a C# program inherits all functionality necessary to operate as a COM+ service. Specific COM+ services are implemented by adding appropriate attributes ...

Get C# Unleashed 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.