Class DecimalValidator
Validates decimal values.
Namespace: Sartorius.SAF.Validation
Assembly: Sartorius.SAF.dll
Syntax
public static class DecimalValidator
Methods
View SourceIsValidDecimalWithLeadingSignAndDecimalSeparator(string, decimal?, decimal?, int?)
Checks whether the given value is a valid decimal
with AllowLeadingSign and
AllowDecimalPoint.
Declaration
public static bool IsValidDecimalWithLeadingSignAndDecimalSeparator(string value, decimal? minimum = null, decimal? maximum = null, int? numberOfAllowedDecimalPoints = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The value to validate. |
| decimal? | minimum | The minimum allowed value. |
| decimal? | maximum | The maximum allowed value. |
| int? | numberOfAllowedDecimalPoints | The allowed number of decimal points. |
Returns
| Type | Description |
|---|---|
| bool | True if the |