Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MarshalManagedToNative()

IntPtr System.Runtime.InteropServices.CustomMarshalers.EnumerableToDispatchMarshaler.MarshalManagedToNative ( object ManagedObj)
inline

Implements System.Runtime.InteropServices.ICustomMarshaler.

Definition at line 34 of file EnumerableToDispatchMarshaler.cs.

35 {
36 if (ManagedObj == null)
37 {
38 throw new ArgumentNullException("ManagedObj");
39 }
40 return Marshal.GetComInterfaceForObject<object, IEnumerable>(ManagedObj);
41 }

References System.Runtime.InteropServices.Marshal.GetComInterfaceForObject().