Show / Hide Table of Contents

Class Range<T>

Inheritance
object
Range<T>
DateTimeOffsetRange
DateTimeRange
ReceiptNumberRange
Implements
IEquatableRange
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: NineDigiteKasa
Assembly: NineDigit.eKasa.dll
Syntax
public class Range<T> : IEquatable<Range<T>> where T : struct, IComparable
Type Parameters
Name Description
T

Constructors

Range()

Declaration
public Range()

Range(IComparer<T>)

Declaration
public Range(IComparer<T> comparer)
Parameters
Type Name Description
IComparer comparer

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

Start of the interval.

Declaration
public T? From { get; }
Property Value
Type Description

To

End of the interval.

Declaration
public T? To { get; }
Property Value
Type Description

Methods

Contains(T)

Declaration
public bool Contains(T value)
Parameters
Type Name Description
T value
Returns
Type Description
bool

Equals(Range<T>)

Declaration
public bool Equals(Range<T> other)
Parameters
Type Name Description
Range other
Returns
Type Description
bool

Equals(Range<T>, Range<T>)

Declaration
public static bool Equals(Range<T> x, Range<T> y)
Parameters
Type Name Description
Range x
Range y
Returns
Type Description
bool

Equals(object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

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
Type Description
bool

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
public bool IsBounded()
Returns
Type Description
bool

IsDegenerate()

Specifies whether both interval sides are specified equal.

Declaration
public bool IsDegenerate()
Returns
Type Description
bool

IsSpecified()

Specifies whether at least one interval side specified.

Declaration
public bool IsSpecified()
Returns
Type Description
bool

IsUnbounded()

Specifies whether this range represents infinite interval on both sides.

Declaration
public bool IsUnbounded()
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

IEquatable<T>
In This Article
Na začiatok stránky Nine Digit, s.r.o. ©