Represents a range of consecutive non-negative integers.
Constructor | Description |
Full Usage:
ContiguousNonNegativeIntegerRange(start, count)
Parameters:
int
-
First element belonging to the range.
count : int
-
Number of consecutive integers belonging to the range.
|
Constructs an integer range from the first element and the number of element of the range.
|
Full Usage:
ContiguousNonNegativeIntegerRange(from)
Parameters:
IContiguousIntegerRange
-
The integer range to copy from.
|
Constructs an integer range from another integer range.
|
Instance member | Description |
Full Usage:
this.Clone
Returns: obj
Modifiers: abstract |
|
Full Usage:
this.Contains
Parameters:
int
Returns: bool
Modifiers: abstract |
|
Full Usage:
this.Count
Returns: int
Modifiers: abstract |
Number of elements of the integer range.Thus the integer range contains Start, Start+1, .. Start+Count-1.
|
Full Usage:
this.End
Returns: int
|
Element immmediately after the last valid element (is equal to ContiguousNonNegativeIntegerRange.Start+ContiguousNonNegativeIntegerRange.Count).
|
Full Usage:
this.IsEmpty
Returns: bool
|
Returns true if the range is empty, i.e. has no elements.
|
Full Usage:
this.IsInfinite
Returns: bool
|
Returns true if the integer range is infinite.
|
Full Usage:
this.[arg1]
Parameters:
int
Returns: int
Modifiers: abstract |
|
Full Usage:
this.Last
Returns: int
|
Last valid element of the integer range (is equal to ContiguousNonNegativeIntegerRange.Start+ContiguousNonNegativeIntegerRange.Count-1).
|
|
|
|
|
Full Usage:
this.Start
Returns: int
Modifiers: abstract |
Start value of the integer range.
|
Static member | Description |
|
Gets a standard empty integer range (ContiguousNonNegativeIntegerRange.Start and ContiguousNonNegativeIntegerRange.Count set to zero).
|
Full Usage:
ContiguousNonNegativeIntegerRange.NewFromStartAndCount(start, count)
Parameters:
int
-
First element belonging to the range.
count : int
-
Number of consecutive integers belonging to the range.
Returns: ContiguousNonNegativeIntegerRange
Newly constructed integer range.
|
Constructs an integer range from the first element and the number of element of the range.
|
Full Usage:
ContiguousNonNegativeIntegerRange.NewFromStartAndEnd(start, end)
Parameters:
int
-
First element belonging to the range.
end : int
-
Element following immediately after the last element, i.e. ContiguousNonNegativeIntegerRange.Last+1.
Returns: ContiguousNonNegativeIntegerRange
Newly constructed integer range.
|
Constructs an integer range from the first element and the element following immediately after the last element.
|
Full Usage:
ContiguousNonNegativeIntegerRange.NewFromStartAndLast(start, last)
Parameters:
int
-
First element belonging to the range.
last : int
-
Last element belonging to the range.
Returns: ContiguousNonNegativeIntegerRange
Newly constructed integer range.
|
Constructs an integer range from the first and the last element of the range.
|
Full Usage:
ContiguousNonNegativeIntegerRange.NewFromStartToInfinity(start)
Parameters:
int
-
First element belonging to the range.
Returns: ContiguousNonNegativeIntegerRange
Newly constructed integer range.
|
Constructs an infinitely extended integer range.
|