C# Class Range, code

显示文件 Open project: shendongnian/code Class Usage Examples

Public Properties

Property Type Description
LowerBound int
UpperBound int

Private Properties

Property Type Description

Public Methods

Method 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 method

public CompareTo ( other ) : int
return int

CompareTo() public method

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
return int

IsBetween() public method

public IsBetween ( int value ) : bool
value int
return bool

Range() public method

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

Property Details

LowerBound public_oe property

public int LowerBound
return int

UpperBound public_oe property

public int UpperBound
return int