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
TType being validated.
- Inheritance
-
Validator<T>
- Inherited Members
Properties
ErrorMessage
Gets the message associated with a validation failure.
public abstract string ErrorMessage { get; }
Property Value
Methods
IsValid(T)
Determines whether the specified value satisfies the validator.
public abstract bool IsValid(T value)
Parameters
valueTValue to validate.