Represents the class that describes how to marshal a field from managed to unmanaged code. This class cannot be inherited.
See Also: UnmanagedMarshal Members
The code example shows the workaround for this obsolete type.
Marshaling is the process of packaging and unpackaging parameters so remote procedure calls can occur. During marshaling, a field might undergo a format conversion when the format of the managed type is different from the format of the corresponding unmanaged type. For example, you might want to marshal a String type as an unmanaged BSTR. Some format conversions are handled automatically by the runtime. To override the default behavior, you must use the UnmanagedMarshal class to define the format conversion.