C# Class Range, code

Afficher le fichier Open project: shendongnian/code Class Usage Examples

Méthodes publiques

Свойство Type Description
LowerBound int
UpperBound int

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
CompareTo ( other ) : int
CompareTo ( int value ) : int

Returns 0 if value is in the specified range; less than 0 if value is above the range; greater than 0 if value is below the range.

IsBetween ( int value ) : bool
Range ( int bottom, int top )

Method Details

CompareTo() public méthode

public CompareTo ( other ) : int
Résultat int

CompareTo() public méthode

Returns 0 if value is in the specified range; less than 0 if value is above the range; greater than 0 if value is below the range.
public CompareTo ( int value ) : int
value int
Résultat int

IsBetween() public méthode

public IsBetween ( int value ) : bool
value int
Résultat bool

Range() public méthode

public Range ( int bottom, int top )
bottom int
top int

Property Details

LowerBound public_oe property

public int LowerBound
Résultat int

UpperBound public_oe property

public int UpperBound
Résultat int