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