Answers for "manually validate class"

0

manually validate class

var context = new ValidationContext(u, serviceProvider: null, items: null);
var validationResults = new List<ValidationResult>();

bool isValid = Validator.TryValidateObject(u, context, validationResults, true);
Posted by: Guest on June-17-2020

Code answers related to "manually validate class"

Browse Popular Code Answers by Language