Skip to content

Clarify StringLengthAttribute.MaximumLength is read-only - #13145

Merged
gewarren merged 2 commits into
mainfrom
copilot/fix-maximumlength-setter
Oct 6, 2026
Merged

gewarren merged 2 commits into
mainfrom
copilot/fix-maximumlength-setter

Conversation

Copilot AI commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

MaximumLength is getter-only, but its documentation said it could be set.

  • Documentation: Update the property summary to say it gets the maximum length, and correct the value description.

Internal previews

File Preview link
xml/System.ComponentModel.DataAnnotations/StringLengthAttribute.xml Learn preview

Build report

Copilot AI linked an issue Oct 2, 2026 that may be closed by this pull request
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix MaximumLength setter documentation Clarify StringLengthAttribute.MaximumLength is read-only Oct 2, 2026
Copilot AI requested a review from gewarren October 2, 2026 15:43
@gewarren
gewarren marked this pull request as ready for review October 2, 2026 17:09
@gewarren
gewarren requested a review from a team as a code owner October 2, 2026 17:09
Copilot AI balanced review requested due to automatic review settings October 2, 2026 17:09
@gewarren
gewarren enabled auto-merge (squash) October 2, 2026 17:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The documentation now accurately matches the property signature.

Review effort: Balanced
Findings: None

What changed in this PR

Clarifies that StringLengthAttribute.MaximumLength is read-only, resolving #13144.

Changes:

  • Corrects the property summary and value description.
File Description
xml/​System.ComponentModel.DataAnnotations/​StringLengthAttribute.xml Documents MaximumLength as getter-only.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@gewarren gewarren closed this Oct 5, 2026
auto-merge was automatically disabled October 5, 2026 17:26

Pull request was closed

@gewarren gewarren reopened this Oct 5, 2026
@gewarren
gewarren enabled auto-merge (squash) October 5, 2026 17:51
@gewarren
gewarren requested a review from BillWagner October 5, 2026 17:51

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM

@gewarren
gewarren merged commit 1f0b97a into main Oct 6, 2026
11 of 12 checks passed
@gewarren
gewarren deleted the copilot/fix-maximumlength-setter branch October 6, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify setter

4 participants