RangeTValue Structure

Represents a range between two values.
[TypeConverterAttribute(typeof(RangeConverter))]
public struct Range<TValue> : IEquatable<Range<TValue>>
where TValue : struct, new()

Type Parameters

TValueThe type of the range bounds.

Constructors

Public methodRangeTValue
Creates a new RangeTValue instance.

Properties

Public propertyFrom
Gets the lower bound of the range.
Public propertyTo
Gets the upper bound of the range.

Methods

Public methodEquals(Object)
Checks if this is range is equal to another range.
Public methodEquals(RangeTValue)
Checks if this is range is equal to another range.
Public methodGetHashCode
Gets a hash code for this range.
Public methodToString
Creates a string representation of this range.

Operators

Public operatorStatic memberEquality
Checks if two ranges are equal.
Public operatorStatic memberInequality
Checks if two ranges are not equal.

See Also

Reference