33 references to FromIntPtr
Microsoft.AspNetCore.Server.IIS (7)
Core\IISHttpServer.cs (5)
157server = (IISHttpServer?)GCHandle.FromIntPtr(pvRequestContext).Target; 188server = (IISHttpServer?)GCHandle.FromIntPtr(pvRequestContext).Target; 212context = (IISHttpContext?)GCHandle.FromIntPtr(pvManagedHttpContext).Target; 234context = (IISHttpContext?)GCHandle.FromIntPtr(pvManagedHttpContext).Target; 259server = (IISHttpServer?)GCHandle.FromIntPtr(serverContext).Target;
Core\IO\WebSocketsAsyncIOEngine.Read.cs (1)
17var context = (WebSocketReadOperation)GCHandle.FromIntPtr(completionContext).Target!;
Core\IO\WebSocketsAsyncIOEngine.Write.cs (1)
16var context = (WebSocketWriteOperation)GCHandle.FromIntPtr(completionContext).Target!;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
BlindAggregatorFactory.cs (1)
70GCHandle.FromIntPtr(_gcHandle).Free();
Microsoft.VisualStudio.LanguageServices (3)
Interop\ComAggregate.cs (2)
58var handle = GCHandle.FromIntPtr(comWrapper.GCHandlePtr); 83var handle = GCHandle.FromIntPtr(comWrapper.GCHandlePtr);
Interop\IComWrapperFixed.cs (1)
20/// <returns>An <see cref="IntPtr"/> which can be passed to <see cref="GCHandle.FromIntPtr(IntPtr)"/> to obtain
PresentationFramework (1)
System\Windows\Standard\MessageWindow.cs (1)
149GCHandle gcHandle = GCHandle.FromIntPtr(createStruct.lpCreateParams);
System.Net.Quic (3)
System\Net\Quic\QuicConnection.cs (1)
784GCHandle stateHandle = GCHandle.FromIntPtr((IntPtr)context);
System\Net\Quic\QuicListener.cs (1)
373GCHandle stateHandle = GCHandle.FromIntPtr((IntPtr)context);
System\Net\Quic\QuicStream.cs (1)
675GCHandle stateHandle = GCHandle.FromIntPtr((IntPtr)context);
System.Net.Security (3)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (3)
886GCHandle protocolHandle = GCHandle.FromIntPtr(sslData); 961GCHandle gch = GCHandle.FromIntPtr(ptr); 991GCHandle gch = GCHandle.FromIntPtr(ptr);
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
229return Unsafe.As<ManagedObjectWrapperHolder>(GCHandle.FromIntPtr(handle).Target);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
156public static explicit operator GCHandle(IntPtr value) => FromIntPtr(value);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
610AssemblyLoadContext context = (AssemblyLoadContext)(GCHandle.FromIntPtr(gchAssemblyLoadContext).Target)!;
src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.HandleManager.Unix.cs (2)
66return (IWaitableObject)GCHandle.FromIntPtr(handle).Target!; 82GCHandle.FromIntPtr(handle).Free();
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (1)
272Unsafe.As<byte, object?>(ref Unsafe.Add(ref RuntimeHelpers.GetRawData(newContinuation), keepAliveOffset)) = GCHandle.FromIntPtr(loaderAllocatorHandle).Target;
src\System\Runtime\InteropServices\Java\JavaMarshal.CoreCLR.cs (1)
69return GCHandle.FromIntPtr(handle);
src\System\Runtime\Loader\AssemblyLoadContext.CoreCLR.cs (3)
115AssemblyLoadContext context = (AssemblyLoadContext)(GCHandle.FromIntPtr(gchAssemblyLoadContext).Target)!; 123AssemblyLoadContext context = (AssemblyLoadContext)(GCHandle.FromIntPtr(gchAssemblyLoadContext).Target)!; 151loadContextForAssembly = (AssemblyLoadContext)(GCHandle.FromIntPtr(ptrAssemblyLoadContext).Target)!;
System.Private.Windows.Core (2)
Windows\Win32\System\Com\Lifetime.cs (2)
31GCHandle.FromIntPtr((nint)lifetime->_handle).Free(); 75return (TObject?)GCHandle.FromIntPtr((IntPtr)lifetime->_handle).Target;
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
494var instance = (FolderBrowserDialog)GCHandle.FromIntPtr(lpData).Target!;
System.Windows.Forms.Primitives.TestUtilities (1)
Metafiles\EmfScope.cs (1)
241GCHandle enumeratorHandle = GCHandle.FromIntPtr(data);
System.Windows.Forms.TestUtilities (1)
PropertyGridInternal\SubPropertyGrid.cs (1)
102((Action)GCHandle.FromIntPtr(m.LParamInternal).Target!)();