Class Number
- Namespace
- Shift.Common
- Assembly
- Shift.Common.dll
public static class Number
- Inheritance
-
Number
- Inherited Members
-
Methods
CheckRange(decimal, decimal?, decimal?)
public static decimal CheckRange(decimal value, decimal? minValue = null, decimal? maxValue = null)
Parameters
value decimal
minValue decimal?
maxValue decimal?
Returns
- decimal
CheckRange(double, double?, double?)
public static double CheckRange(double value, double? minValue = null, double? maxValue = null)
Parameters
value double
minValue double?
maxValue double?
Returns
- double
CheckRange(int, int?, int?)
public static int CheckRange(int value, int? minValue = null, int? maxValue = null)
Parameters
value int
minValue int?
maxValue int?
Returns
- int
CheckRange(float, float?, float?)
public static float CheckRange(float value, float? minValue = null, float? maxValue = null)
Parameters
value float
minValue float?
maxValue float?
Returns
- float
IsInRange(decimal, decimal?, decimal?)
public static bool IsInRange(decimal value, decimal? minValue = null, decimal? maxValue = null)
Parameters
value decimal
minValue decimal?
maxValue decimal?
Returns
- bool
IsInRange(double, double?, double?)
public static bool IsInRange(double value, double? minValue = null, double? maxValue = null)
Parameters
value double
minValue double?
maxValue double?
Returns
- bool
IsInRange(int, int?, int?)
public static bool IsInRange(int value, int? minValue = null, int? maxValue = null)
Parameters
value int
minValue int?
maxValue int?
Returns
- bool
IsNumeric(string)
public static bool IsNumeric(string text)
Parameters
text string
Returns
- bool
NullIfOutOfRange(int?, int?, int?)
public static int? NullIfOutOfRange(int? value, int? minValue = null, int? maxValue = null)
Parameters
value int?
minValue int?
maxValue int?
Returns
- int?