C# 클래스 Aqueduct.Extensions.Numeric

Summary for the Numbers class
파일 보기 프로젝트 열기: aqueduct/Aqueduct.SitecoreLib

공개 메소드들

메소드 설명
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

메소드 상세

IsEven() 공개 정적인 메소드

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

IsInteger() 공개 정적인 메소드

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

IsNaturalNumber() 공개 정적인 메소드

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

IsNumber() 공개 정적인 메소드

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

IsOdd() 공개 정적인 메소드

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

IsWholeNumber() 공개 정적인 메소드

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

Random() 공개 정적인 메소드

Generates a random double
public static Random ( ) : double
리턴 double

Random() 공개 정적인 메소드

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

Random() 공개 정적인 메소드

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