-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update length/capacity exceptions for .NET 11 #12212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Tagging subscribers to this area: @dotnet/area-system-io |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the MemoryStream documentation to reflect .NET 11 changes regarding length and capacity exceptions. The primary focus is documenting the new maximum value (0x7FFFFFC7 bytes) for capacity and length operations introduced in .NET 11.
Key changes include:
- Adding .NET 11-specific exception documentation for
Capacityproperty andSetLengthmethod - Fixing xref formatting by removing
.%2Asuffixes from property references - Improving documentation formatting and consistency
|
|
||
| -or- | ||
|
|
||
| In .NET 11 and later versions, <paramref name="value" /> is greater than 0x7FFFFFC7 bytes. |
Copilot
AI
Jan 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exception documentation states "In .NET 11 and later versions, the value being set is greater than 0x7FFFFFC7 bytes" but doesn't have a period at the end of the sentence. According to documentation standards, sentences in comments should end with a period.
|
|
||
| -or- | ||
|
|
||
| In .NET 11 and later versions, the value being set is greater than 0x7FFFFFC7 bytes. |
Copilot
AI
Jan 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exception documentation states "In .NET 11 and later versions" but doesn't have a period at the end of the sentence. According to documentation standards, sentences in comments should end with a period.
BillWagner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM @gewarren
Let's ![]()
Contributes to dotnet/docs#49545.