Interlocked.Exchange Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
Sets a variable to a specified value as an atomic operation.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
Overload List
Name | Description | |
---|---|---|
Exchange<T>(T%, T) | Sets a variable of the specified type T to a specified value and returns the original value, as an atomic operation. | |
Exchange(Int32%, Int32) | Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operation. | |
Exchange(Int64%, Int64) | Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation. |
Top