Incorrect CustomValidationAttribute remarks #3126
Labels
area-System.ComponentModel.DataAnnotations
cross-platform
Indicates issues or PRs that relate to content applicable to both Framework and Core.
Pri3
Indicates issues/PRs that are low priority
waiting-on-feedback
Indicates PRs that are waiting for feedback from SMEs before they can be merged
Content: https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.customvalidationattribute.method?view=netcore-2.2
Content source: xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml
The remarks for the
Method
property ofCustomValidationAttribute
incorrectly state that the specified method must return aBoolean
and takes aValidationResult
out
param. In .Net Core 2.2 at least, it must return aValidationResult
.Maybe the signature is different in different languages?
Additionally, it would be preferable to have the valid signatures listed as code snippets rather than described in text.
The text was updated successfully, but these errors were encountered: