Decrements the specified variable and stores the result as an atomic operation.
[Edit]
[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)] public static int Decrement (ref int location) |
|
Parameters
- location
- A int containing the variable whose value is to be decremented.
[Edit]
Returns
A int containing the
decremented value.
[Edit]
Remarks
Requirements
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0