Click or drag to resize

RangeT Structure

Creates a minimal IRangeT implementation for any class that implements IComparableT
Inheritance Hierarchy
SystemObject
  SystemValueType
    InnerDrive.CoreRangeT

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.0.8475.0
Syntax
C#
public readonly struct Range<T> : IRange<T>, 
	IComparable, IComparable<Range<T>>, IEquatable<Range<T>>
where T : Object, IComparable<T>

Type Parameters

T
The type parameter to use

The RangeT type exposes the following members.

Constructors
 NameDescription
Public methodRangeT(IEnumerableT) Creates a new instance of DateRange from a generic list of DateTime values.
Public methodRangeT(IRangeT) Creates a new instance of RangeT from an existing range value.
Public methodRangeT(T, T, Boolean, Boolean) Creates a new instance of RangeT
Top
Properties
 NameDescription
Public propertyIsLowerInclusive If true, the range includes the Lower value. Otherwise values equal to or less than the Lower value are out of the range.
Public propertyIsUpperInclusive If true, the range includes the Upper value. Otherwise values equal to or greater than the Upper value are out of the range.
Public propertyLower Gets or sets the lowest value in the range.
Public propertyUpper Gets or sets the highest value in the range.
Top
Methods
 NameDescription
Public methodCompareTo(Object) Compares this instance to a specified Object and returns an indication of their relative values.
Public methodCode exampleCompareTo(T) Compares this instance to a specified DateTimeOffset structure and returns an indication of their relative values.
Public methodCompareTo(RangeT)Defines a generalized comparison method that a value type or class implements to create a type-specific comparison method for ordering or sorting its instances.
Public methodContains(IRangeT) Returns true if the given RangeT is contained within this range.
Public methodContains(T) Returns true if the given range is contained within this range.
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodEquals(RangeT) Determines whether the specified RangeT is equal to the current RangeT.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOverlaps(IRangeT) Returns true if the given range is partially contained within this range.
Public methodOverlaps(RangeT) Returns true if the given RangeT is partially contained within this RangeT.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(RangeT, RangeT) Compares two instances of RangeT for equality.
Public operatorStatic memberGreaterThan(RangeT, RangeT) Determines whether one RangeT is greater than another.
Public operatorStatic memberInequality(RangeT, RangeT) Compares two instances of RangeT for inequality.
Public operatorStatic memberLessThan(RangeT, RangeT) Determines whether one RangeT is less than another.
Top
See Also