18 references to ToIntPtr
libmscordaccore_universal (1)
Entrypoints.cs (1)
148*handle = GCHandle.ToIntPtr(gcHandle);
Microsoft.Diagnostics.DataContractReader.Legacy (3)
Dbi\Helpers\StackWalkHandleData.cs (1)
50return (nuint)GCHandle.ToIntPtr(gcHandle);
IEnum.cs (1)
15return GCHandle.ToIntPtr(gcHandle).ToInt64();
MetaDataImportImpl.cs (1)
76nint ptr = GCHandle.ToIntPtr(handle);
Microsoft.Private.Windows.Core (1)
Windows\Win32\System\Com\Lifetime.cs (1)
58wrapper->_handle = (void*)GCHandle.ToIntPtr(GCHandle.Alloc(@object));
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpRequestState.cs (1)
61return GCHandle.ToIntPtr(_operationHandle);
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)
206(void*)GCHandle.ToIntPtr(context), 251(void*)GCHandle.ToIntPtr(context));
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
165public static explicit operator IntPtr(GCHandle value) => ToIntPtr(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (2)
103var thisHandlePtr = GCHandle.ToIntPtr(thisHandle); 149var thisStrongHandlePtr = GCHandle.ToIntPtr(thisStrongHandle);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.HandleManager.Unix.cs (1)
49IntPtr handle = GCHandle.ToIntPtr(GCHandle.Alloc(waitableObject, GCHandleType.Normal));
System.Private.TypeLoader (1)
Internal\Runtime\TypeLoader\LockFreeObjectInterner.cs (1)
66return GCHandle.ToIntPtr(value);
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));