26 references to ToIntPtr
libmscordaccore_universal (1)
Entrypoints.cs (1)
148*handle = GCHandle.ToIntPtr(gcHandle);
Microsoft.Diagnostics.DataContractReader.Legacy (11)
Dbi\DacDbiImpl.cs (4)
826int hrLocal = _legacy.EnumerateAssembliesInAppDomain(vmAppDomain, &CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle)); 1056int hrLocal = _legacy.EnumerateThreads(&CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle)); 2433int hrLocal = _legacy.EnumerateInternalFrames(vmThread, (delegate* unmanaged<Debugger_STRData*, void*, void>)&CollectStubFrameCallback, GCHandle.ToIntPtr(dacHandle)); 3362int hrLocal = legacyEnumerate(&dacObjectSize, GCHandle.ToIntPtr(dacHandle));
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
143GCHandle.ToIntPtr(dacHandle));
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);
SOSDacImpl.cs (3)
4821void* tokenDebug = GCHandle.ToIntPtr(expectedHandle).ToPointer(); 4978void* tokenDebug = GCHandle.ToIntPtr(GCHandle.Alloc(expectedElements)).ToPointer(); 5039void* tokenDebug = GCHandle.ToIntPtr(expectedElementsHandle).ToPointer();
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));