Property | Type | Description | |
---|---|---|---|
Max | int | ||
Min | int |
Method | Description | |
---|---|---|
Clone ( ) : object |
Overrides System.Object.Clone()
|
|
Contains ( |
Checks if the given range is a subrange, bo.exp. this.Min <= range.Min and range.Max <= this.Max.
|
|
Contains ( int value ) : bool |
Checks if the given value lies within the range, i.e. Min <= value and value <= Max.
|
|
ContainsOrFail ( |
Checks if the given range is a subrange, bo.exp. this.Min <= range.Min and range.Max <= this.Max. If the range ist not contained an ArgumentOutOfRangeException will be raised.
|
|
ContainsOrFail ( int value ) : bool |
Checks if the given value lies within the range, bo.exp. Min <= value and value <= Max. If the value ist not contained an ArgumentOutOfRangeException will be raised.
|
|
Equals ( |
Compares this range to the specified range. The results is true if and only if the argument has the same values as this object.
|
|
Equals ( object obj ) : bool |
Compares this range to the specified object. The results is true if and only if the argument is not null and is a PositiveRange object that has the same values as this object.
|
|
GetHashCode ( ) : int |
a hash code value for this range.
|
|
PositiveRange ( int low, int high ) : System |
Initializes a new instance of the PositiveRange class, i.e. a range of integers, such that 0 <= low <= high.
|
|
Size ( ) : int |
The Size of the range.
|
|
ToString ( ) : string |
Represents the range as a string, formatted as "[Min,Max]".
|
|
operator ( ) : bool |
Compares this range to the specified range. The results is true if and only if the arguments do not have the same value.
|
public Contains ( |
||
range | The range to be checked. | |
return | bool |
public Contains ( int value ) : bool | ||
value | int | The value to checked. |
return | bool |
public ContainsOrFail ( |
||
range | The range to be checked. | |
return | bool |
public ContainsOrFail ( int value ) : bool | ||
value | int | The value to checked. |
return | bool |
public Equals ( |
||
that | a positive range to compare with. | |
return | bool |
public Equals ( object obj ) : bool | ||
obj | object | The object to compare with. |
return | bool |
public PositiveRange ( int low, int high ) : System | ||
low | int | The lower bound (Min) of the range. |
high | int | The upper bound (Max) of the range. |
return | System |