microsoft / referencesource

Source from the Microsoft .NET Reference Source that represent a subset of the .NET Framework
https://referencesource.microsoft.com/
MIT License
3.16k stars 1.27k forks source link

Validator.ValidateObject validateAllProperties argument misleading documentation. #61

Closed alfredorevilla closed 5 years ago

alfredorevilla commented 6 years ago

Documentation for validateAllProperties states:

true to validate all properties; otherwise, false.

However in order to validate not only all properties but also all validation attributes besides RequiredAttribute it must be set to true.

This issue should be present to TryValidateObject method too.

terrajobst commented 5 years ago

This repo only tracks infrastructure issues regarding the following items:

For issues regarding functionality, please use the following resources: