7 references to Exchange
Microsoft.AspNetCore.Server.HttpSys (1)
NativeInterop\SafeNativeOverlapped.cs (1)
38IntPtr oldHandle = Interlocked.Exchange(ref handle, IntPtr.Zero);
Microsoft.CodeAnalysis.UnitTests (1)
MetadataReferences\FusionAssemblyPortabilityPolicy.cs (1)
75IntPtr ptr = Interlocked.Exchange(ref _assemblyConfigCookie, IntPtr.Zero);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.Unix.cs (1)
86IntPtr handle = Interlocked.Exchange(ref _directoryHandle, IntPtr.Zero);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
78IntPtr handle = Interlocked.Exchange(ref _handle, IntPtr.Zero);
System.Reflection.Metadata (1)
System\Reflection\Internal\MemoryBlocks\NativeHeapMemoryBlock.cs (1)
46IntPtr ptr = Interlocked.Exchange(ref _pointer, IntPtr.Zero);
System.Windows.Forms (2)
System\Windows\Forms\Rendering\ScreenDcCache.cs (2)
48item = Interlocked.Exchange(ref _itemsCache[i], IntPtr.Zero); 72temp = Interlocked.Exchange(ref _itemsCache[i], temp);