Create(long?, long?, bool)
Creates a NumericRange with bounds of type long.
Declaration
public static NumericRange Create(long? min, long? max, bool areBoundsAllowed = true)Parameters
| Type | Name | Description |
|---|---|---|
| long? | min | The minimum value, or |
| long? | max | The maximum value, or |
| bool | areBoundsAllowed | A value indicating whether the bounds are inclusive ( |
Returns
| Type | Description |
|---|---|
| NumericRange | A new NumericRange instance. |
Create(ulong?, ulong?, bool)
Creates a NumericRange with bounds of type ulong.
Declaration
public static NumericRange Create(ulong? min, ulong? max, bool areBoundsAllowed = true)Parameters
| Type | Name | Description |
|---|---|---|
| ulong? | min | The minimum value, or |
| ulong? | max | The maximum value, or |
| bool | areBoundsAllowed | A value indicating whether the bounds are inclusive ( |
Returns
| Type | Description |
|---|---|
| NumericRange | A new NumericRange instance. |
Create(double?, double?, bool)
Creates a NumericRange with bounds of type double.
Declaration
public static NumericRange Create(double? min, double? max, bool areBoundsAllowed = true)Parameters
| Type | Name | Description |
|---|---|---|
| double? | min | The minimum value, or |
| double? | max | The maximum value, or |
| bool | areBoundsAllowed | A value indicating whether the bounds are inclusive ( |
Returns
| Type | Description |
|---|---|
| NumericRange | A new NumericRange instance. |
Create(decimal?, decimal?, bool)
Creates a NumericRange with bounds of type decimal.
Declaration
public static NumericRange Create(decimal? min, decimal? max, bool areBoundsAllowed = true)Parameters
| Type | Name | Description |
|---|---|---|
| decimal? | min | The minimum value, or |
| decimal? | max | The maximum value, or |
| bool | areBoundsAllowed | A value indicating whether the bounds are inclusive ( |
Returns
| Type | Description |
|---|---|
| NumericRange | A new NumericRange instance. |