ValidationHelper Class

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Helper and extension methods for validating objects.

public static class ValidationHelper
Inheritance:
System.Object → ValidationHelper

Fields

GuidPattern A regular expression pattern for validating guids.

Methods

IsDigit(Char) Returns true if the character is a digit between '0' and '9'
IsEmailWhitelisted(String) Check if the specified email address is in the domain whitelist.
IsLetterOrDigit(Char) Returns true if the character is upper, lower, or a digit
IsLower(Char) Returns true if the character is between 'a' and 'z'
IsUpper(Char) Returns true if the character is between 'A' and 'Z'
IsValid(IValidatableObject) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
TryValidate(IValidatableObject, ICollectionResult>) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
TryValidate(Object, ICollectionResult>) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
Validate(IValidatableObject) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
Validate(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
ValidatePassword(String) Ensures that the password is of the required length and meets the configured requirements.
ValidatePassword(String, Int32, Boolean, Boolean, Boolean, Boolean) Ensures that the password is of the required length and meets the specified requirements.