.NET Framework 4.5
The ICustomMarshaler type exposes the following members.
|CleanUpManagedData||Performs necessary cleanup of the managed data when it is no longer needed.|
|CleanUpNativeData||Performs necessary cleanup of the unmanaged data when it is no longer needed.|
|GetNativeDataSize||Returns the size of the native data to be marshaled.|
|MarshalManagedToNative||Converts the managed data to unmanaged data.|
|MarshalNativeToManaged||Converts the unmanaged data to managed data.|