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