34 references to Alloc
Microsoft.AspNetCore.Server.IIS (4)
Core\IISHttpContext.cs (1)
156_thisHandle = GCHandle.Alloc(this);
Core\IISHttpServer.cs (1)
98_httpServerHandle = GCHandle.Alloc(this);
Core\IO\WebSocketsAsyncIOEngine.Read.cs (1)
36_thisHandle = GCHandle.Alloc(this);
Core\IO\WebSocketsAsyncIOEngine.Write.cs (1)
31_thisHandle = GCHandle.Alloc(this);
PresentationFramework (2)
System\Windows\Documents\WinEventHandler.cs (1)
33_gchThis = GCHandle.Alloc(_winEventProc);
System\Windows\Standard\MessageWindow.cs (1)
59gcHandle = GCHandle.Alloc(this);
System.Net.Quic (5)
System\Net\Quic\Internal\ResettableValueTaskSource.cs (2)
102_keepAlive = GCHandle.Alloc(keepAlive); 324GCHandle handle = GCHandle.Alloc(keepAlive);
System\Net\Quic\Internal\ValueTaskSource.cs (1)
85_keepAlive = GCHandle.Alloc(keepAlive);
System\Net\Quic\QuicConnection.cs (1)
572GCHandle keepObject = GCHandle.Alloc(this);
System\Net\Quic\QuicListener.cs (1)
182GCHandle keepObject = GCHandle.Alloc(this);
System.Net.Requests (1)
System\Net\TimerThread.cs (1)
207_thisHandle = (IntPtr)GCHandle.Alloc(this);
System.Net.Security (2)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
431alpnHandle = GCHandle.Alloc(sslAuthenticationOptions.ApplicationProtocols);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
163_gch = GCHandle.Alloc(this);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\Overlapped.cs (1)
160GCHandleRef(pNativeOverlapped, 0) = GCHandle.Alloc(this);
System.Private.Windows.Core (5)
Windows\Win32\PInvokeCore.EnumChildWindows.cs (1)
16GCHandle gcHandle = GCHandle.Alloc(callback);
Windows\Win32\PInvokeCore.EnumDisplayMonitors.cs (1)
12GCHandle gcHandle = GCHandle.Alloc(callBack);
Windows\Win32\PInvokeCore.EnumThreadWindows.cs (1)
18GCHandle gcHandle = GCHandle.Alloc(callback);
Windows\Win32\PInvokeCore.EnumWindows.cs (1)
15GCHandle gcHandle = GCHandle.Alloc(callback);
Windows\Win32\System\Com\Lifetime.cs (1)
58wrapper->_handle = (void*)GCHandle.ToIntPtr(GCHandle.Alloc(@object));
System.Runtime.Caching (1)
System\Runtime\Caching\SRef.cs (1)
36_handle = GCHandle.Alloc(t);
System.Windows.Forms (3)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
453GCHandle handle = GCHandle.Alloc(this);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
559var instanceHandle = GCHandle.Alloc(this);
System\Windows\Forms\Timer.cs (1)
114_timerRoot = GCHandle.Alloc(this);
System.Windows.Forms.Primitives (1)
Windows\Win32\PInvoke.SendMessageCallback.cs (1)
19GCHandle gcHandle = GCHandle.Alloc(callback);
System.Windows.Forms.Primitives.TestUtilities (1)
Metafiles\EmfScope.cs (1)
79GCHandle enumeratorHandle = GCHandle.Alloc(enumerator);
System.Windows.Forms.TestUtilities (1)
PropertyGridInternal\SubPropertyGrid.cs (1)
48var callbackHandle = GCHandle.Alloc(() =>
UIAutomationClient (4)
MS\Internal\Automation\EventListenerClientSide.cs (1)
32_gch = GCHandle.Alloc(_callbackDelegate);
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
1576GCHandle gch = GCHandle.Alloc(enumWindows);
MS\Internal\Automation\UiaCoreApi.cs (1)
1560_gchandle = GCHandle.Alloc(onGetProviderDelegate);
MS\Internal\Automation\WinEventWrap.cs (1)
240_gchThis = GCHandle.Alloc(_winEventProc);
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\Misc.cs (1)
349GCHandle gch = GCHandle.Alloc(enumToolTipWindows);
MS\Internal\AutomationProxies\MSAAWinEventWrap.cs (1)
171_gchThis = GCHandle.Alloc(_winEventProc);
MS\Internal\AutomationProxies\WinEventTracker.cs (1)
173hp._procHookHandle = GCHandle.Alloc (proc);