Table of Contents

Class CreditCardValidator

Namespace
CloudyWing.FormValidators
Assembly
CloudyWing.FormValidators.dll

The credit card validator.

public sealed class CreditCardValidator : BasicFormValidator, IFormValidator
Inheritance
CreditCardValidator
Implements
Inherited Members

Constructors

CreditCardValidator(string, string, Func<string, string, string>)

Initializes a new instance of the CreditCardValidator class.

public CreditCardValidator(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.

Methods

ValidateValue()

Validates the value.

protected override bool ValidateValue()

Returns

bool

The validation result.