コード例 #1
0
        public SoMuch AddFunsxx(SoMuch soMuch)
        {
            //var results = new List<ValidationResult>();
            //var isValid = Validator.TryValidateObject(soMuch, new ValidationContext(soMuch, null, null), results, true);
            //Console.WriteLine("Validation resulted in " + isValid);

            //isValid = Validator.TryValidateObject(soMuch.NestedObjTest, new ValidationContext(soMuch.NestedObjTest, null, null), results, true);
            //Console.WriteLine("Validation resulted in " + isValid);

            //Validator.ValidateObject(soMuch, new ValidationContext(soMuch, null, null));
            //Validator.ValidateObject(soMuch.NestedObjTest, new ValidationContext(soMuch.NestedObjTest, null, null));

            SwagValidator.Validate(soMuch);

            throw new NotImplementedException();
        }
コード例 #2
0
 public void ThisShouldBeRenamed(SoMuch soMuch)
 {
     throw new NotImplementedException();
 }