Skip to content

Clarify ConcurrentStack range exception docs#12718

Open
marko1olo wants to merge 1 commit into
dotnet:mainfrom
marko1olo:docs/concurrent-stack-range-exceptions
Open

Clarify ConcurrentStack range exception docs#12718
marko1olo wants to merge 1 commit into
dotnet:mainfrom
marko1olo:docs/concurrent-stack-range-exceptions

Conversation

@marko1olo

Copy link
Copy Markdown

Fixes #10508.

Updates ConcurrentStack.PushRange and TryPopRange exception documentation so startIndex equal to items.Length is not documented as ArgumentOutOfRangeException. The existing ArgumentException documentation still covers startIndex + count beyond the array length.

Validation:

  • git diff --check
  • XML parsed successfully with PowerShell [xml]

@marko1olo marko1olo requested a review from a team as a code owner June 5, 2026 17:55
@github-actions github-actions Bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jun 5, 2026
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates that the PR has been added by a community member needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ConcurrentStack<T>.TryPopRange does not throw ArgumentOutOfRangeException when startIndex equals the length of items

1 participant