Skip to content

Update length/capacity exceptions for .NET 11#12212

Merged
gewarren merged 1 commit intodotnet:mainfrom
gewarren:memorystream-exceptions
Jan 12, 2026
Merged

Update length/capacity exceptions for .NET 11#12212
gewarren merged 1 commit intodotnet:mainfrom
gewarren:memorystream-exceptions

Conversation

@gewarren
Copy link
Contributor

@gewarren gewarren commented Jan 9, 2026

Contributes to dotnet/docs#49545.

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-io

Copy link
Contributor

Copilot AI left a 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 Capacity property and SetLength method
  • Fixing xref formatting by removing .%2A suffixes from property references
  • Improving documentation formatting and consistency

Copy link
Member

@BillWagner BillWagner left a 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 :shipit:

@gewarren gewarren merged commit 72ea69b into dotnet:main Jan 12, 2026
13 checks passed
@gewarren gewarren deleted the memorystream-exceptions branch January 12, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants