Table of Contents

Interface IValidator

Namespace
MADE.Data.Validation
Assembly
MADE.Data.Validation.dll

Defines an interface for a data validator.

public interface IValidator
Extension Methods

Properties

FeedbackMessage

Gets or sets the feedback message to display when IsInvalid is true.

string FeedbackMessage { get; set; }

Property Value

string

IsDirty

Gets or sets a value indicating whether the data is dirty.

bool IsDirty { get; set; }

Property Value

bool

IsInvalid

Gets or sets a value indicating whether the data provided is in an invalid state.

bool IsInvalid { get; set; }

Property Value

bool

Key

Gets or sets the key associated with the validator.

string Key { get; set; }

Property Value

string

Methods

Validate(object)

Executes data validation on the provided value.

void Validate(object value)

Parameters

value object

The value to be validated.