Ariadne.SharedInt32.Exchange C# (CSharp) Method

Exchange() public method

Atomically replace the value of the Ariadne.SharedInt32, returning the previous value.
public Exchange ( int value ) : int
value int The number to set the to.
return int
        public int Exchange(int value)
        {
            return Interlocked.Exchange(ref _value, value);
        }