Show / Hide Table of Contents

Class DecimalValidator

Validates decimal values.

Inheritance
object
DecimalValidator
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Sartorius.SAF.Validation
Assembly: Sartorius.SAF.dll
Syntax
public static class DecimalValidator

Methods

View Source

IsValidDecimalWithLeadingSignAndDecimalSeparator(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 value is valid, otherwise false.

  • View Source
Back to top Generated by DocFX