コード例 #1
0
        public void ForClass <T>(Action <ClassValidationRules <T> > configuration) where T : class
        {
            var rules = new ClassValidationRules <T>();

            configuration(rules);

            _innerRegistrations.Add(rules);
        }
コード例 #2
0
 public FieldValidationExpression(ClassValidationRules <T> parent, Accessor accessor)
 {
     _parent   = parent;
     _accessor = accessor;
 }