Class Range<T>
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public class Range<T>
where T : IComparable<T>
Type Parameters
Name | Description |
---|---|
T | Generic parameter. |
Properties
Maximum
Maximum value of the range.
Declaration
public T Maximum { get; set; }
Property Value
Type | Description |
---|---|
T |
Minimum
Minimum value of the range.
Declaration
public T Minimum { get; set; }
Property Value
Type | Description |
---|---|
T |
Methods
ContainsRange(Range<T>)
Determines if another range is inside the bounds of this range.
Declaration
public bool ContainsRange(Range<T> range)
Parameters
Type | Name | Description |
---|---|---|
Range<T> | range |
Returns
Type | Description |
---|---|
System.Boolean | True if range is inside, else false |
ContainsValue(T)
Determines if the provided value is inside the range.
Declaration
public bool ContainsValue(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to test |
Returns
Type | Description |
---|---|
System.Boolean | True if the value is inside Range, else false |
IsInsideRange(Range<T>)
Determines if this Range is inside the bounds of another range.
Declaration
public bool IsInsideRange(Range<T> range)
Parameters
Type | Name | Description |
---|---|---|
Range<T> | range |
Returns
Type | Description |
---|---|
System.Boolean | True if range is inclusive, else false |
IsValid()
Determines if the range is valid.
Declaration
public bool IsValid()
Returns
Type | Description |
---|---|
System.Boolean | True if range is valid, else false |
ToString()
Presents the Range in readable format.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String representation of the Range |