Interface IValidator
Defines the properties and methods that objects participating in validation must implement.
Namespace: Nevatech.Vsb.Repository
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public interface IValidator
Properties
ErrorMessage
When implemented, gets the message indicating the errors found during validation process.
Declaration
string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
This property should be checked only if Validate() method returns False. If Validate() method returns True, this property should return Null.
Methods
Validate()
When implemented, evaluates the state of the object.
Declaration
bool Validate()
Returns
Type | Description |
---|---|
Boolean | True if state is valid; otherwise, false. |