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

◆ ConvertSafeHandleToNative()

static IntPtr System.StubHelpers.HandleMarshaler.ConvertSafeHandleToNative ( SafeHandle handle,
ref CleanupWorkListElement cleanupWorkList )
inlinestaticpackage

Definition at line 8 of file HandleMarshaler.cs.

9 {
10 if (Unsafe.IsNullRef(ref cleanupWorkList))
11 {
12 throw new InvalidOperationException(SR.Interop_Marshal_SafeHandle_InvalidOperation);
13 }
14 if (handle == null)
15 {
16 throw new ArgumentNullException("handle");
17 }
18 return StubHelpers.AddToCleanupList(ref cleanupWorkList, handle);
19 }

References System.StubHelpers.StubHelpers.AddToCleanupList(), System.handle, and System.SR.Interop_Marshal_SafeHandle_InvalidOperation.