Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

Interlocked.Exchange Method

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.

  Name Description
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 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.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Exchange(Int32, Int32) Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operation.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Exchange(Int64, Int64) Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation.
Top

Community Additions

Show:
© 2015 Microsoft