Table of Contents

Class BasicFormValidator

Namespace
CloudyWing.FormValidators.Core
Assembly
CloudyWing.FormValidators.dll

The basic form validator abstract class.

public abstract class BasicFormValidator : FormValidatorBase, IFormValidator
Inheritance
BasicFormValidator
Implements
Derived
Inherited Members

Constructors

BasicFormValidator(string, string, Func<string, string, string>)

Initializes a new instance of the FormValidatorBase class.

public BasicFormValidator(string column, string value, Func<string, string, string> customErrorMessageAccessor)

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

CustomErrorMessage

Gets the custom error message.

protected override string CustomErrorMessage { get; }

Property Value

string

The custom error message.

CustomErrorMessageAccessor

Gets or sets the custom error message accessor.

public Func<string, string, string> CustomErrorMessageAccessor { get; }

Property Value

Func<string, string, string>

The custom error message accessor.

DefaultErrorMessage

Gets the default error message.

protected override string DefaultErrorMessage { get; }

Property Value

string

The default error message.

DefaultErrorMessageAccessor

Gets the get default error message.

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

Property Value

Func<string, string, string>

The get default error message.

HasCustomErrorMessage

Gets a value indicating whether this instance has custom error message.

protected override bool HasCustomErrorMessage { get; }

Property Value

bool

true if this instance has custom error message; otherwise, false.

See Also