Show / Hide Table of Contents

Class DecimalValidator

Validates System.Decimal values.

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

Methods

View Source

IsValidDecimalWithLeadingSignAndDecimalSeparator(String, Nullable<Decimal>, Nullable<Decimal>, Nullable<Int32>)

Checks whether the given value is a valid System.Decimal with System.Globalization.NumberStyles.AllowLeadingSign and System.Globalization.NumberStyles.AllowDecimalPoint.

Declaration
public static bool IsValidDecimalWithLeadingSignAndDecimalSeparator(string value, decimal? minimum = null, decimal? maximum = null, int? numberOfAllowedDecimalPoints = null)
Parameters
Type Name Description
System.String value

The value to validate.

System.Nullable<System.Decimal> minimum

The minimum allowed value.

System.Nullable<System.Decimal> maximum

The maximum allowed value.

System.Nullable<System.Int32> numberOfAllowedDecimalPoints

The allowed number of decimal points.

Returns
Type Description
System.Boolean

True if the value is valid, otherwise false.

  • View Source
Back to top Generated by DocFX