Table of Contents

Class EmailValidator

Namespace
CloudyWing.FormValidators
Assembly
CloudyWing.FormValidators.dll

The email validator.

public sealed class EmailValidator : RegexValidator, IFormValidator
Inheritance
EmailValidator
Implements
Inherited Members

Constructors

EmailValidator(string, string, Func<string, string, string>)

Initializes a new instance of the EmailValidator class.

public EmailValidator(string column, string value, Func<string, string, string> customErrorMessageAccessor = null)

Parameters

column string

The column.

value string

The value.

customErrorMessageAccessor Func<string, string, string>

The custom error message accessor. The arguments are column, value.

Properties

DefaultErrorMessageAccessor

Gets the get default error message.

protected override Func<string, string, string> DefaultErrorMessageAccessor { get; }

Property Value

Func<string, string, string>

The get default error message.

See Also