Пример #1
0
        public ValidatorBuilder <object> CreateValidatorBuilder()
        {
            var builder = new ValidatorBuilder <object>();

            builder.AddKnownType <TestClass>();
            builder.AddRegexAttributeConstraint <RegexAttribute>(a => a.Pattern);
            return(builder);
        }