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