MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Contracts.​NumericNumeric­RangeIs­In­Range
Open sandboxFocus

NumericRange.IsInRange Method

IsInRange(double)

Determines if a value of type double is in the current range.

Declaration
public bool IsInRange(double value)
Parameters
Type Name Description
double value
Returns
Type Description
bool

IsInRange(decimal)

Determines if a value of type decimal is in the current range.

Declaration
public bool IsInRange(decimal value)
Parameters
Type Name Description
decimal value
Returns
Type Description
bool

IsInRange(long)

Determines if a value of type long is in the current range.

Declaration
public bool IsInRange(long value)
Parameters
Type Name Description
long value
Returns
Type Description
bool

IsInRange(ulong)

Determines if a value of type ulong is in the current range.

Declaration
public bool IsInRange(ulong value)
Parameters
Type Name Description
ulong value
Returns
Type Description
bool

IsInRange(object?)

Determines if a value of unknown type is in the current range. Returns false if the type is unsupported.

Declaration
public bool IsInRange(object? value)
Parameters
Type Name Description
object value
Returns
Type Description
bool