示例#1
0
        public StringValidRule ForProperty(Func <string> valueGetter, string displayName)
        {
            var branchColl = new PredicatesBranchCollection <string>(valueGetter);

            _branches.Add(branchColl);
            return(new StringValidRule(displayName, branchColl));
        }
示例#2
0
        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));
        }
示例#3
0
 public BaseValidRule(string propName, PredicatesBranchCollection <TValue> predicatesBranch)
 {
     this.propName  = propName;
     _currentBranch = predicatesBranch;
 }
示例#4
0
 public ComparableValidRule(string propName, PredicatesBranchCollection <TValue> branch) : base(propName, branch)
 {
 }
 public StringValidRule(string propName, PredicatesBranchCollection <string> predicatesBranch) : base(propName, predicatesBranch)
 {
 }