C# Class WebApplications.Utilities.ExtendedInterlocked

Show file Open project: webappsuk/CoreLibraries

Public Methods

Method Description
Decrement ( int &value, [ range ) : int

Decrement a value whilst keeping it inside a range.

Decrement ( int &value, int start, int end ) : int

Decrement a value whilst keeping it inside a range.

Increment ( int &value, [ range ) : int

Increments a value whilst keeping it inside a range.

Increment ( int &value, int start, int end ) : int

Increments a value whilst keeping it inside a range.

Method Details

Decrement() public static method

Decrement a value whilst keeping it inside a range.
public static Decrement ( int &value, [ range ) : int
value int The value.
range [ The range.
return int

Decrement() public static method

Decrement a value whilst keeping it inside a range.
public static Decrement ( int &value, int start, int end ) : int
value int The value.
start int The start of the range (inclusive).
end int The end of the range (inclusive).
return int

Increment() public static method

Increments a value whilst keeping it inside a range.
public static Increment ( int &value, [ range ) : int
value int The value.
range [ The range.
return int

Increment() public static method

Increments a value whilst keeping it inside a range.
public static Increment ( int &value, int start, int end ) : int
value int The value.
start int The start of the range (inclusive).
end int The end of the range (inclusive).
return int