Show / Hide Table of Contents

Class Int32Validator

Validates System.Int32 values.

Inheritance
System.Object
Int32Validator
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 Int32Validator

Methods

View Source

IsValidInteger(String, Nullable<Int32>, Nullable<Int32>)

Checks whether the given value is a valid System.Int32.

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

The value to validate.

System.Nullable<System.Int32> minimum

The minimum allowed value

System.Nullable<System.Int32> maximum

The maximum allowed value

Returns
Type Description
System.Boolean

True if the value is a valid System.Int32, otherwise false.

  • View Source
Back to top Generated by DocFX