![]() | RangeT Class |
Namespace: Koden.Utils
[Missing <typeparam name="T"/> documentation for "T:Koden.Utils.Range`1"]
The RangeT type exposes the following members.
Name | Description | |
---|---|---|
![]() | RangeT(T, T) |
Constructs a new inclusive range using the default comparer
|
![]() | RangeT(T, T, IComparerT) |
Constructs a new range including both ends using the specified comparer
|
![]() | RangeT(T, T, IComparerT, Boolean, Boolean) |
Constructs a new range, including or excluding each end as specified,
with the given comparer.
|
Name | Description | |
---|---|---|
![]() | Comparer |
Comparer to use for comparisons
|
![]() | End |
The end of the range.
|
![]() | IncludesEnd |
Whether or not this range includes the end point
|
![]() | IncludesStart |
Whether or not this range includes the start point
|
![]() | Start |
The start of the range.
|
Name | Description | |
---|---|---|
![]() | Contains |
Returns whether or not the range contains the given value
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | ExcludeEnd |
Returns a range with the same boundaries as this, but excluding the end point.
When called on a range already excluding the end point, the original range is returned.
|
![]() | ExcludeStart |
Returns a range with the same boundaries as this, but excluding the start point.
When called on a range already excluding the start point, the original range is returned.
|
![]() | FromEnd |
Returns an iterator which begins at the end of this range,
applying the given step delegate on each iteration until the
start is reached or passed. The start and end points are included
or excluded according to this range.
|
![]() | FromStart |
Returns an iterator which begins at the start of this range,
applying the given step delegate on each iteration until the
end is reached or passed. The start and end points are included
or excluded according to this range.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IncludeEnd |
Returns a range with the same boundaries as this, but including the end point.
When called on a range already including the end point, the original range is returned.
|
![]() | IncludeStart |
Returns a range with the same boundaries as this, but including the start point.
When called on a range already including the start point, the original range is returned.
|
![]() | Step |
Returns an iterator which steps through the range, applying the specified
step delegate on each iteration. The method determines whether to begin
at the start or end of the range based on whether the step delegate appears to go
"up" or "down". The step delegate is applied to the start point. If the result is
more than the start point, the returned iterator begins at the start point; otherwise
it begins at the end point.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |