C# Class Habanero.Faces.Base.ValidationRule

Provides a validation rule that checks if the value in a control is valid. ValidationRule is designed to be a simple as possible to reduce overhead in run-time. Because each validation rule can be attach to a control, there could be many instances of this class.
Inheritance: ICloneable
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Clone ( ) : object

ValidationRule is memberwised cloneable.

Compare ( string leftText, string rightText, ValidationCompareOperator op, ValidationRule vr ) : bool

Compare two values.

Protected Methods

Method Description
OnCustomValidationMethod ( CustomValidationEventArgs e ) : void

Delegate invoking of validation method.

Method Details

Clone() public method

ValidationRule is memberwised cloneable.
public Clone ( ) : object
return object

Compare() public static method

Compare two values.
public static Compare ( string leftText, string rightText, ValidationCompareOperator op, ValidationRule vr ) : bool
leftText string
rightText string
op ValidationCompareOperator
vr ValidationRule
return bool

OnCustomValidationMethod() protected method

Delegate invoking of validation method.
protected OnCustomValidationMethod ( CustomValidationEventArgs e ) : void
e CustomValidationEventArgs
return void