C# Class ExoRule.Validation.StringFormatRule

Applies conditions when the value of a ModelProperty is not in the correct format.
Inheritance: PropertyRule
Mostrar archivo Open project: vc3/ExoRule

Public Methods

Method Description
StringFormatRule ( string rootType, string property, Func formatDescription, Func formatExpression, Func reformatExpression = null, RuleInvocationType invocationTypes = RuleInvocationType.PropertyChanged ) : System

Protected Methods

Method Description
ConditionApplies ( ModelInstance root ) : bool

Private Methods

Method Description
CreateError ( string property, Func formatDescription ) : ConditionType>.Func

Method Details

ConditionApplies() protected method

protected ConditionApplies ( ModelInstance root ) : bool
root ModelInstance
return bool

StringFormatRule() public method

public StringFormatRule ( string rootType, string property, Func formatDescription, Func formatExpression, Func reformatExpression = null, RuleInvocationType invocationTypes = RuleInvocationType.PropertyChanged ) : System
rootType string
property string
formatDescription Func
formatExpression Func
reformatExpression Func
invocationTypes RuleInvocationType
return System