InterlockedExchangeT(T, T) Method |
Sets a variable of the specified type T to a specified value and and returns the original value, as an atomic operation.
Namespace: Crestron.SimplSharpAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic static T Exchange<T>(
ref T location1,
T value
)
where T : class
Parameters
- location1 T
- The variable to set to the specified value.
- value T
- The value to which the location1 parameter is set.
Type Parameters
- T
- Type to be used for location1 and value.
Return Value
TThe original value of location1.
ExceptionsVersion Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also