Exchange Method

Interlocked.Exchange Method

 

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

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticExchange(Double, Double)

Sets a double-precision floating point number to a specified value and returns the original value, as an atomic operation.

System_CAPS_pubmethodSystem_CAPS_staticExchange(Int32, Int32)

Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operation.

System_CAPS_pubmethodSystem_CAPS_staticExchange(Int64, Int64)

Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation.

System_CAPS_pubmethodSystem_CAPS_staticExchange(IntPtr, IntPtr)

Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation.

System_CAPS_pubmethodSystem_CAPS_staticExchange(Object, Object)

Sets an object to a specified value and returns a reference to the original object, as an atomic operation.

System_CAPS_pubmethodSystem_CAPS_staticExchange(Single, Single)

Sets a single-precision floating point number to a specified value and returns the original value, as an atomic operation.

System_CAPS_pubmethodSystem_CAPS_staticExchange<T>(T, T)

Sets a variable of the specified type T to a specified value and returns the original value, as an atomic operation.

Return to top
Show:
© 2016 Microsoft