Represents a range of consecutive integers. The range can be empty (in this case both ContiguousIntegerRange.Start as well as ContiguousIntegerRange.Count are zero).
Constructor | Description |
Full Usage:
ContiguousIntegerRange(from)
Parameters:
IContiguousIntegerRange
-
The integer range to copy from.
|
Constructs an integer range from another integer range.
|
Instance member | Description |
Full Usage:
this.Add
Parameters:
int
|
|
Full Usage:
this.Clear
|
|
Full Usage:
this.Clone
Returns: obj
Modifiers: abstract |
|
Full Usage:
this.Contains
Parameters:
int
Returns: bool
Modifiers: abstract |
|
Full Usage:
this.CopyTo
Parameters:
int[]
arrayIndex : int
|
|
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.EndExclusive
Returns: int
|
Element immmediately after the last valid element (is equal to ContiguousIntegerRange.Start+ContiguousIntegerRange.Count).
|
Full Usage:
this.First
Returns: int
|
Start value of the integer range.
|
Full Usage:
this.IndexOf
Parameters:
int
Returns: int
|
|
Full Usage:
this.Insert
Parameters:
int
item : int
|
|
Full Usage:
this.IsEmpty
Returns: bool
|
Returns true if the range is empty, i.e. has no elements.
|
Full Usage:
this.IsReadOnly
Returns: bool
|
|
Full Usage:
this.[arg1]
Returns: int
Modifiers: abstract |
|
Full Usage:
this.LastInclusive
Returns: int
|
Last valid element of the integer range (is equal to ContiguousIntegerRange.Start+ContiguousIntegerRange.Count-1).
|
Full Usage:
this.LongCount
Returns: int64
|
Number of elements of the integer range.Thus the integer range contains Start, Start+1, .. Start+Count-1.
|
|
|
|
|
Full Usage:
this.Remove
Parameters:
int
Returns: bool
|
|
Full Usage:
this.RemoveAt
Parameters:
int
|
|
Full Usage:
this.Start
Returns: int
Modifiers: abstract |
Start value of the integer range.
|
Static member | Description |
|
Gets a standard empty integer range (ContiguousIntegerRange.Start and ContiguousIntegerRange.Count set to zero).
|
Full Usage:
ContiguousIntegerRange.FromFirstAndLastInclusive(start, last)
Parameters:
int
-
First element belonging to the range.
last : int
-
Last element belonging to the range.
Returns: ContiguousIntegerRange
Newly constructed integer range.
|
Constructs an integer range from the first and the last element of the range. Note that because last has to be greater than or equal to start, it is not possible to create an empty range with this method.
|
Full Usage:
ContiguousIntegerRange.FromStartAndCount(start, count)
Parameters:
int
-
First element belonging to the range.
count : int
-
Number of consecutive integers belonging to the range.
Returns: ContiguousIntegerRange
Newly constructed integer range.
|
Constructs an integer range from the first element and the number of element of the range. An empty range (with start=0 and count=0) is constructed if count is zero.
|
Full Usage:
ContiguousIntegerRange.FromStartAndEndExclusive(start, end)
Parameters:
int
-
First element belonging to the range.
end : int
-
Element following immediately after the last element, i.e. ContiguousIntegerRange.LastInclusive+1.
Returns: ContiguousIntegerRange
Newly constructed integer range.
|
Constructs an integer range from the first element and the element following immediately after the last element. An empty range (with start=0 and count=0) is constructed if start is equal to end.
|