14 references to ToIntPtr
System.Net.Quic (5)
System\Net\Quic\QuicConnection.cs (2)
326(void*)GCHandle.ToIntPtr(context), 361(void*)GCHandle.ToIntPtr(context));
System\Net\Quic\QuicListener.cs (1)
130(void*)GCHandle.ToIntPtr(context),
System\Net\Quic\QuicStream.cs (2)
176(void*)GCHandle.ToIntPtr(context), 221(void*)GCHandle.ToIntPtr(context));
System.Net.Security (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
432Interop.Ssl.SslSetData(sslHandle, GCHandle.ToIntPtr(alpnHandle));
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
165public static explicit operator IntPtr(GCHandle value) => ToIntPtr(value);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (2)
103var thisHandlePtr = GCHandle.ToIntPtr(thisHandle); 149var thisStrongHandlePtr = GCHandle.ToIntPtr(thisStrongHandle);
src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.HandleManager.Unix.cs (1)
49IntPtr handle = GCHandle.ToIntPtr(GCHandle.Alloc(waitableObject, GCHandleType.Normal));
src\System\Runtime\InteropServices\Java\JavaMarshal.CoreCLR.cs (1)
86IntPtr handle = GCHandle.ToIntPtr(obj);
System.Private.Windows.Core (1)
Windows\Win32\System\Com\Lifetime.cs (1)
58wrapper->_handle = (void*)GCHandle.ToIntPtr(GCHandle.Alloc(@object));
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
463GCHandle.ToIntPtr(handle));
System.Windows.Forms.TestUtilities (1)
PropertyGridInternal\SubPropertyGrid.cs (1)
66PInvokeCore.PostMessage(this, WM_DELAYEDEXECUTION, lParam: GCHandle.ToIntPtr(callbackHandle));