MinLength/MaxLength description is too specific #10981
Labels
area-System.ComponentModel.DataAnnotations
untriaged
New issue has not been triaged by the area owner
Type of issue
Typo
Description
The description says that the
MinLengthAttribute
andMaxLengthAttribute
attributes works on "length of array or string data", while the description of theLengthAttribute
attribute says it works on "length of collection/string data".Looking at the source, all three attributes uses
CountPropertyHelper.TryGetCount()
, so the descriptions should be similar.Please change the description of
MinLengthAttribute
andMaxLengthAttribute
to match the wording ofLengthAttribute
, such that it mentions "collection" instead of "array".Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.minlengthattribute?view=net-9.0
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.ComponentModel.DataAnnotations/MinLengthAttribute.xml
Document Version Independent Id
cea3e844-0415-4269-9f5a-ec4b71c3ff21
Article author
@dotnet-bot
The text was updated successfully, but these errors were encountered: