Skip to content

MinLength/MaxLength description is too specific #10981

Open
@MizardX

Description

@MizardX

Type of issue

Typo

Description

The description says that the MinLengthAttribute and MaxLengthAttribute attributes works on "length of array or string data", while the description of the LengthAttribute 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 and MaxLengthAttribute to match the wording of LengthAttribute, 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions