Table of Contents

Class Validator<T>

Namespace
Executables.Validation
Assembly
executables.dll

Represents a validation rule for values of type T.

public abstract class Validator<T>

Type Parameters

T

Type being validated.

Inheritance
Validator<T>
Inherited Members

Properties

ErrorMessage

Gets the message associated with a validation failure.

public abstract string ErrorMessage { get; }

Property Value

string

Methods

IsValid(T)

Determines whether the specified value satisfies the validator.

public abstract bool IsValid(T value)

Parameters

value T

Value to validate.

Returns

bool

true when the value is valid; otherwise false.