Struct Range<T>
A strongly-typed range of values between a minimum and maximum (inclusive)
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public struct Range<T> : IRange where T : IComparable
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
| Improve this Doc View SourceRange(T, T)
Initializes a new instance of the Range<T> struct.
Declaration
public Range(T min, T max)
Parameters
| Type | Name | Description |
|---|---|---|
| T | min | The minimum. |
| T | max | The maximum. |
Properties
| Improve this Doc View SourceHasValue
Whether the range has been initialized with a value
Declaration
public bool HasValue { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Maximum
The maximum value of the range
Declaration
public T Maximum { get; }
Property Value
| Type | Description |
|---|---|
| T |
Minimum
The minimum value of the range
Declaration
public T Minimum { get; }
Property Value
| Type | Description |
|---|---|
| T |
Methods
| Improve this Doc View SourceContainsValue(T)
Whether or not the range contains the specified value
Declaration
public bool ContainsValue(T value)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Explicit Interface Implementations
| Improve this Doc View SourceIRange.Maximum
Declaration
object IRange.Maximum { get; }
Returns
| Type | Description |
|---|---|
| System.Object |
Implements
| Improve this Doc View SourceIRange.Minimum
Declaration
object IRange.Minimum { get; }
Returns
| Type | Description |
|---|---|
| System.Object |