C# Class Aqueduct.Extensions.Numeric

Summary for the Numbers class
Afficher le fichier Open project: aqueduct/Aqueduct.SitecoreLib

Méthodes publiques

Méthode 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 méthode

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

IsInteger() public static méthode

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

IsNaturalNumber() public static méthode

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

IsNumber() public static méthode

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

IsOdd() public static méthode

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

IsWholeNumber() public static méthode

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

Random() public static méthode

Generates a random double
public static Random ( ) : double
Résultat double

Random() public static méthode

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

Random() public static méthode

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