InterlockedCompareExchange(Int32, Int32, Int32) Method |
Compares two 32-bit signed integers for equality and, if they are equal,replaces one of the values.
Namespace: Crestron.SimplSharpAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic static int CompareExchange(
ref int location1,
int value,
int comparand
)
Parameters
- location1 Int32
- The destination, whose value is compared with comparand and possibly replaced
- value Int32
- The value that replaces the destination value if the comparison results in equality
- comparand Int32
- The value that is compared to the value at location1
Return Value
Int32The original value in location1
ExceptionsVersion Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also