public StringValidRule ForProperty(Func <string> valueGetter, string displayName) { var branchColl = new PredicatesBranchCollection <string>(valueGetter); _branches.Add(branchColl); return(new StringValidRule(displayName, branchColl)); }
public ComparableValidRule <TValue> ForProperty <TValue>(Func <TValue> valueGetter, string displayName) where TValue : struct, IComparable { var branchColl = new PredicatesBranchCollection <TValue>(valueGetter); _branches.Add(branchColl); return(new ComparableValidRule <TValue>(displayName, branchColl)); }
public BaseValidRule(string propName, PredicatesBranchCollection <TValue> predicatesBranch) { this.propName = propName; _currentBranch = predicatesBranch; }
public ComparableValidRule(string propName, PredicatesBranchCollection <TValue> branch) : base(propName, branch) { }
public StringValidRule(string propName, PredicatesBranchCollection <string> predicatesBranch) : base(propName, predicatesBranch) { }