Create(long, bool, int)
Creates a NumericBound from a long value.
Declaration
public static NumericBound Create(long value, bool isAllowed = true, int decimalPlaces = 0)Parameters
| Type | Name | Description |
|---|---|---|
| long | value | The bound value. |
| bool | isAllowed | A value indicating whether the bound value is inclusive ( |
| int | decimalPlaces | When non-zero, interprets the value as a decimal with the specified number of decimal places. |
Returns
| Type | Description |
|---|---|
| NumericBound | A new NumericBound instance. |
Create(ulong, bool)
Creates a NumericBound from a ulong value.
Declaration
public static NumericBound Create(ulong value, bool isAllowed = true)Parameters
| Type | Name | Description |
|---|---|---|
| ulong | value | The bound value. |
| bool | isAllowed | A value indicating whether the bound value is inclusive ( |
Returns
| Type | Description |
|---|---|
| NumericBound | A new NumericBound instance. |
Create(decimal, bool)
Creates a NumericBound from a decimal value.
Declaration
public static NumericBound Create(decimal value, bool isAllowed = true)Parameters
| Type | Name | Description |
|---|---|---|
| decimal | value | The bound value. |
| bool | isAllowed | A value indicating whether the bound value is inclusive ( |
Returns
| Type | Description |
|---|---|
| NumericBound | A new NumericBound instance. |
Create(double, bool)
Creates a NumericBound from a double value.
Declaration
public static NumericBound Create(double value, bool isAllowed = true)Parameters
| Type | Name | Description |
|---|---|---|
| double | value | The bound value. |
| bool | isAllowed | A value indicating whether the bound value is inclusive ( |
Returns
| Type | Description |
|---|---|
| NumericBound | A new NumericBound instance. |