C# Class ExoRule.Validation.StringFormatRule

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

Méthodes publiques

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

Méthodes protégées

Méthode Description
ConditionApplies ( ModelInstance root ) : bool

Private Methods

Méthode Description
CreateError ( string property, Func formatDescription ) : ConditionType>.Func

Method Details

ConditionApplies() protected méthode

protected ConditionApplies ( ModelInstance root ) : bool
root ModelInstance
Résultat bool

StringFormatRule() public méthode

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
Résultat System