Skip to content

Fix and Update the summary for AggregateException.Flatten() - #13049

Open
bb-froggy wants to merge 1 commit into
dotnet:mainfrom
bb-froggy:patch-1
Open

Fix and Update the summary for AggregateException.Flatten()#13049
bb-froggy wants to merge 1 commit into
dotnet:mainfrom
bb-froggy:patch-1

Conversation

@bb-froggy

@bb-froggy bb-froggy commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

The current summary of AggregateException.Flatten() is grammatically incorrect and difficult to understand.

This updated version is grammatically correct and also makes it clearer what the Flatten method does.


Internal previews

File Preview link
xml/System/AggregateException.xml Learn preview

Build report

Copilot AI lite review requested due to automatic review settings September 1, 2026 13:48
@bb-froggy
bb-froggy requested a review from a team as a code owner September 1, 2026 13:48
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Sep 1, 2026

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.

🟢 Approval recommended

Pull request overview

This PR updates the API reference documentation for System.AggregateException.Flatten() to improve the clarity and grammar of its <summary> description.

Changes:

  • Reworded the Flatten() method summary to clarify that it flattens a hierarchy (“tree”) of nested AggregateException instances into a single returned instance.
File summaries
File Description
xml/System/AggregateException.xml Updates the Flatten() method summary text for improved clarity/grammar.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

<Parameters />
<Docs>
<summary>Flattens an <see cref="T:System.AggregateException" /> instances into a single, new instance.</summary>
<summary>Flattens a tree of <see cref="T:System.AggregateException" /> instances into a single, new instance.</summary>
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

<Parameters />
<Docs>
<summary>Flattens an <see cref="T:System.AggregateException" /> instances into a single, new instance.</summary>
<summary>Flattens a tree of <see cref="T:System.AggregateException" /> instances into a single, new instance.</summary>

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.

an was arguably correct, this renders as

Flattens an AggregateException instances into a single, new instance.

i.e. an AggregateException


The mistake here is likely in the use of instances, particularly given that "tree" has its own implications and that may not at all be what this is.

If this were to be reworded for clarity, maybe it should instead focus on what its actually doing here, which is pulling InnerExceptions, checking if any are AggregateException, and if so pulling its InnerExceptions up (recursively). -- Correspondingly, if this represents a graph with a cycle, it can fault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Runtime community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants