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

◆ SafeHandleAddRef()

static IntPtr System.StubHelpers.StubHelpers.SafeHandleAddRef ( SafeHandle pHandle,
ref bool success )
inlinestaticpackage

Definition at line 82 of file StubHelpers.cs.

83 {
84 if (pHandle == null)
85 {
86 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.pHandle, ExceptionResource.ArgumentNull_SafeHandle);
87 }
88 pHandle.DangerousAddRef(ref success);
89 return pHandle.DangerousGetHandle();
90 }

References System.pHandle, and System.ThrowHelper.ThrowArgumentNullException().

Referenced by System.StubHelpers.SafeHandleCleanupWorkListElement.AddRef().