Click or drag to resize

InterlockedDecrement Method

Decrements a specified variable and stores the result, as an atomic operation.

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static int Decrement(
	ref int location
)

Parameters

location  Int32
The variable whose value is to be decremented.

Return Value

Int32
The decremented value.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe address of location is a null pointer.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also