GetAndSetAsync Method
GetAndSetAsync(T)
Sets the current value, and returns the original value.
Declaration
Task<T> GetAndSetAsync(T value)
Parameters
T | value | The value to set. |
Returns
Task<T> | The original value. |
Remarks
If default(T)
when reference is not set.
You can make it return null
instead by using Nullable<T>.