IRangeT Interface

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

Definition

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
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.

Properties

IsLowerInclusive If true, the range includes the Lower value. Otherwise values equal to or less than the Lower value are out of the range.
IsUpperInclusive If true, the range includes the Upper value. Otherwise values equal to or greater than the Upper value are out of the range.
Lower Gets or sets the lowest value in the range.
Upper Gets or sets the highest value in the range.

Methods

Contains(T) Returns true if the value is contained within this range.
Contains(IRangeT) Returns true if the given range is entirely contained within this range.
Overlaps Returns true if the given range is partially contained within this range.

See Also