Click or drag to resize

IRangeT Interface

Represents a range of values that may or may not include the bounds of the range.

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

Type Parameters

T
The Type of object that forms the range. T must implement IComparableT.

The IRangeT type exposes the following members.

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 methodContains(T) Returns true if the value is contained within this range.
Public methodContains(IRangeT) Returns true if the given range is entirely contained within this range.
Public methodOverlaps Returns true if the given range is partially contained within this range.
Top
See Also