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

◆ ThrowIfInvalid()

static void System.Runtime.InteropServices.GCHandle.ThrowIfInvalid ( IntPtr handle)
inlinestaticprivate

Definition at line 180 of file GCHandle.cs.

181 {
182 if (handle == (IntPtr)0)
183 {
184 ThrowHelper.ThrowInvalidOperationException_HandleIsNotInitialized();
185 }
186 }

References System.handle, and System.ThrowHelper.ThrowInvalidOperationException_HandleIsNotInitialized().

Referenced by System.Runtime.InteropServices.GCHandle.AddrOfPinnedObject(), System.Runtime.InteropServices.GCHandle.Free(), and System.Runtime.InteropServices.GCHandle.FromIntPtr().