5 references to Exchange
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\InstanceContext.cs (1)
284object oldUserObject = Interlocked.Exchange(ref _userObject, newUserObject);
System.Data.Odbc (1)
System\Data\Odbc\OdbcEnvironment.cs (1)
33object? globalEnvironmentHandle = Interlocked.Exchange(ref s_globalEnvironmentHandle, null);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
3451object? continuationObject = Interlocked.Exchange(ref m_continuationObject, s_taskCompletionSentinel);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (2)
743workItem = Interlocked.Exchange(ref _nextWorkItemToProcess, null); 938workItem = Interlocked.Exchange(ref workQueue._nextWorkItemToProcess, null);