Click or drag to resize

InterlockedIncrement Method

Increments 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 Increment(
	ref int location
)

Parameters

location  Int32
The variable whose value is to be incremented.

Return Value

Int32
The incremented 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