Open sandboxFocus

Method Create

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 null for no minimum.

long? max

The maximum value, or null for no maximum.

bool areBoundsAllowed

A value indicating whether the bounds are inclusive (true) or exclusive (false).

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 null for no minimum.

ulong? max

The maximum value, or null for no maximum.

bool areBoundsAllowed

A value indicating whether the bounds are inclusive (true) or exclusive (false).

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 null for no minimum.

double? max

The maximum value, or null for no maximum.

bool areBoundsAllowed

A value indicating whether the bounds are inclusive (true) or exclusive (false).

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 null for no minimum.

decimal? max

The maximum value, or null for no maximum.

bool areBoundsAllowed

A value indicating whether the bounds are inclusive (true) or exclusive (false).

Returns
Type Description
NumericRange

A new NumericRange instance.