Class Range<T>
Namespace: NineDigiteKasa
Assembly: NineDigit.eKasa.dll
Syntax
public class Range<T> : IEquatable<Range<T>> where T : struct, IComparable
Type Parameters
Constructors
Range()
Declaration
Range(IComparer<T>)
Declaration
public Range(IComparer<T> comparer)
Parameters
Range(T?, T?)
Declaration
public Range(T? from, T? to)
Parameters
| Type |
Name |
Description |
|
from |
|
|
to |
|
Range(T?, T?, IComparer<T>)
Declaration
public Range(T? from, T? to, IComparer<T> comparer)
Parameters
| Type |
Name |
Description |
|
from |
|
|
to |
|
| IComparer |
comparer |
|
Properties
From
Declaration
Property Value
To
Declaration
Property Value
Methods
Contains(T)
Declaration
public bool Contains(T value)
Parameters
| Type |
Name |
Description |
| T |
value |
|
Returns
Equals(Range<T>)
Declaration
public bool Equals(Range<T> other)
Parameters
| Type |
Name |
Description |
| Range |
other |
|
Returns
Equals(Range<T>, Range<T>)
Declaration
public static bool Equals(Range<T> x, Range<T> y)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
HasIntersectionWith(Range<T>)
Determines if this interval has intersection with other interval
Declaration
public bool HasIntersectionWith(Range<T> other)
Parameters
| Type |
Name |
Description |
| Range |
other |
Other interval
|
Returns
IntersectWith(Range<T>)
Gets intersection with other interval
Declaration
public Range<T> IntersectWith(Range<T> other)
Parameters
| Type |
Name |
Description |
| Range |
other |
Other interval
|
Returns
| Type |
Description |
| Range |
Intersection of two interval
|
IsBounded()
Specifies whether both interval sides are specified.
Declaration
Returns
IsDegenerate()
Specifies whether both interval sides are specified equal.
Declaration
public bool IsDegenerate()
Returns
IsSpecified()
Specifies whether at least one interval side specified.
Declaration
public bool IsSpecified()
Returns
IsUnbounded()
Specifies whether this range represents infinite interval on both sides.
Declaration
public bool IsUnbounded()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements