Export (0) Print
Expand All

Interlocked.Exchange Method

Sets a variable to a specified value as an atomic operation.

Name Description
Interlocked.Exchange (Double, Double) Sets a double-precision floating point number to a specified value and returns the original value, as an atomic operation.
Interlocked.Exchange (Int32, Int32) Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operation.

Supported by the .NET Compact Framework.

Interlocked.Exchange (Int64, Int64) Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation.
Interlocked.Exchange (IntPtr, IntPtr) Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation.
Interlocked.Exchange (Object, Object) Sets an object to a specified value and returns a reference to the original object, as an atomic operation.

Supported by the .NET Compact Framework.

Interlocked.Exchange (Single, Single) Sets a single-precision floating point number to a specified value and returns the original value, as an atomic operation.
Interlocked.Exchange (T, T)  

Supported by the .NET Compact Framework.

Community Additions

ADD
Show:
© 2014 Microsoft