Class Validators
Utility class to provide parameter validation extension methods
Inheritance
System.Object
Validators
Inherited Members
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: Ubiquity.NET.ArgValidators
Assembly: Ubiquity.NET.ArgValidators.dll
Syntax
public static class Validators
Methods
ValidateDefined<T>(T, String) | Validates that a value is defined on the Enum type. |
ValidateLength(String, Int32, Int32, String) | Validates a string length falls within a specific range. |
ValidateNotDefault<T>(T, String) | Verifies that a value is not equal to the default for the type. |
ValidateNotNull(IntPtr, String) | Verifies an IntPtr isn't null. |
ValidateNotNull(UIntPtr, String) | Verifies an UIntPtr isn't null. |
ValidateNotNull<T>(T, String) | Verifies an object isn't null. |
ValidateNotNullOrWhiteSpace(String, String) | Validates a parameter string is not null or white space. |
ValidatePattern(String, String, String) | Verifies that a string matches a Regular expression pattern. |
ValidatePattern(String, Regex, String) | Verifies that a string matches a Regular expression pattern. |
ValidateRange<T>(T, T, T, String) | Verifies a parameter is within a valid range. |