Sets an integer variable to a specified value as an atomic operation and returns the original value.
[Visual Basic] Overloads Public Shared Function Exchange( _ ByRef location1 As Integer, _ ByVal value As Integer _ ) As Integer [C#] public static int Exchange( ref int location1, int value ); [C++] public: static int Exchange( int** location1, int value ); [JScript] public static function Exchange( location1 : int, value : int ) : int;
The original (unset) value of the location1 variable.
Interlocked Class | Interlocked Members | System.Threading Namespace | Interlocked.Exchange Overload List