C# Class Aqueduct.Extensions.Numeric

Summary for the Numbers class
Datei anzeigen Open project: aqueduct/Aqueduct.SitecoreLib

Public Methods

Method Description
IsEven ( this value ) : bool

Determines whether the specified value is an even number.

IsInteger ( this sItem ) : bool

Determines whether the specified s item is integer.

IsNaturalNumber ( this sItem ) : bool

Determines whether a number is a natural number (positive, non-decimal)

IsNumber ( this sItem ) : bool

Determines whether the specified s item is number.

IsOdd ( this value ) : bool

Determines whether the specified value is an odd number.

IsWholeNumber ( this sItem ) : bool

Determines whether [is whole number] [the specified s item].

Random ( ) : double

Generates a random double

Random ( int high ) : int

Generates a random number with an upper bound

Random ( int low, int high ) : int

Generates a random number between the specified bounds

Method Details

IsEven() public static method

Determines whether the specified value is an even number.
public static IsEven ( this value ) : bool
value this The value.
return bool

IsInteger() public static method

Determines whether the specified s item is integer.
public static IsInteger ( this sItem ) : bool
sItem this The s item.
return bool

IsNaturalNumber() public static method

Determines whether a number is a natural number (positive, non-decimal)
public static IsNaturalNumber ( this sItem ) : bool
sItem this The s item.
return bool

IsNumber() public static method

Determines whether the specified s item is number.
public static IsNumber ( this sItem ) : bool
sItem this The s item.
return bool

IsOdd() public static method

Determines whether the specified value is an odd number.
public static IsOdd ( this value ) : bool
value this The value.
return bool

IsWholeNumber() public static method

Determines whether [is whole number] [the specified s item].
public static IsWholeNumber ( this sItem ) : bool
sItem this The s item.
return bool

Random() public static method

Generates a random double
public static Random ( ) : double
return double

Random() public static method

Generates a random number with an upper bound
public static Random ( int high ) : int
high int The high.
return int

Random() public static method

Generates a random number between the specified bounds
public static Random ( int low, int high ) : int
low int The low.
high int The high.
return int