InterlockedExchange(Object, Object) Method |
Sets an object to a specified value and returns a reference to the original
object, as an atomic operation.
Namespace: Crestron.SimplSharpAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic static Object Exchange(
ref Object location1,
Object value
)
Parameters
- location1 Object
- The variable to set to the specified value.
- value Object
- The value to which the location1 parameter is set.
Return Value
ObjectThe original value of location1.
ExceptionsVersion Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also