Class NumericRange
Defines a numeric range for searching.
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public sealed class NumericRange
Constructors
NumericRange(double, bool, double, bool)
Initializes a new instance of the NumericRange class.
Declaration
public NumericRange(double min = -1.7976931348623157E+308, bool inclusiveOfMin = true, double max = 1.7976931348623157E+308, bool inclusiveOfMax = true)
Parameters
Type | Name | Description |
---|---|---|
double | min | The minimum value of the range. |
bool | inclusiveOfMin | Whether the minimum value is inclusive. |
double | max | The maximum value of the range. |
bool | inclusiveOfMax | Whether the maximum value is inclusive. |
Methods
GreaterThan(double)
Initializes a new instance of the NumericRange class.
Declaration
public static NumericRange GreaterThan(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The exclusive minimum value of the range. |
Returns
Type | Description |
---|---|
NumericRange | A NumericRange. |
GreaterThanOrEqual(double)
Initializes a new instance of the NumericRange class.
Declaration
public static NumericRange GreaterThanOrEqual(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The inclusive minimum value of the range. |
Returns
Type | Description |
---|---|
NumericRange | A NumericRange. |
LessThan(double)
Initializes a new instance of the NumericRange class.
Declaration
public static NumericRange LessThan(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The exclusive maximum value of the range. |
Returns
Type | Description |
---|---|
NumericRange | A NumericRange. |
LessThanOrEqual(double)
Initializes a new instance of the NumericRange class.
Declaration
public static NumericRange LessThanOrEqual(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The inclusive maximum value of the range. |
Returns
Type | Description |
---|---|
NumericRange | A NumericRange. |