Interface IRange<T>
Interface that defines a range of values.
Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.dll
Syntax
public interface IRange<T> where T : IComparable<T>
Type Parameters
Name | Description |
---|---|
T | Base type of the value range. |
Properties
| Edit this page View SourceMaxInclusive
Gets or sets a value that determines whether the maximum value is part of the range.
Declaration
bool MaxInclusive { get; set; }
Property Value
Type | Description |
---|---|
bool |
Maximum
Maximum value of the range.
Declaration
T Maximum { get; set; }
Property Value
Type | Description |
---|---|
T |
MinInclusive
Gets or sets a value that determines whether the minimum value is part of the range.
Declaration
bool MinInclusive { get; set; }
Property Value
Type | Description |
---|---|
bool |
Minimum
Minimum value of the range.
Declaration
T Minimum { get; set; }
Property Value
Type | Description |
---|---|
T |
Methods
| Edit this page View SourceIntersects(IRange<T>)
Determines if a IRange<T> intersects with this.
Declaration
bool Intersects(IRange<T> other)
Parameters
Type | Name | Description |
---|---|---|
IRange<T> | other | Range to check. |
Returns
Type | Description |
---|---|
bool | true if |
IsWithin(T)
Checks if a value T
is within this
IRange<T>
Declaration
bool IsWithin(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | Value to check. |
Returns
Type | Description |
---|---|
bool | true if the value is within this IRange<T>, false otherwise. |