Decrements the specified variable and stores the result as an atomic operation.
- location
- A int containing the variable whose value is to be decremented.
A int containing the decremented value.
This method handles an overflow condition by wrapping: if location = int.MinValue , location - 1 = int.MaxValue . No exception is thrown.
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0