Custom Marshaling

A custom marshaler enables you to precisely control the way in which a managed type is exposed to COM or an unmanaged type is exposed to the .NET Framework. You use a custom marshaler instead of the interop marshaler, which the common language runtime provides by default.

In This Section