DataAnnotationsValidatorRecursive
DataAnnotationsValidatorRecursive copied to clipboard
Validate Root IEnumerable
Hello,
The TryValidateObjectRecursive method doesn't work if the root object itself is IEnumerable.
e.g.
List<ThingToValidate> stuff
TryValidateObjectRecursive(stuff) does zero validation. You need a property of the root object that is enumerable.