Skip to content

Conversation

@xtqqczze
Copy link
Contributor

  • Task.WaitAll
  • Task.Whenall
  • string.Join

As per:

if (values.GetType() == typeof(List<string?>)) // avoid accidentally bypassing a derived type's reimplementation of IEnumerable<T>

Related: #118682

* `Task.WaitAll`
* `Task.Whenall`
* `string.Join`

Related: dotnet#118682
@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 Aug 13, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Aug 13, 2025
@stephentoub
Copy link
Member

I appreciate what you're trying to do here, but I'm really not motivated to make these changes. Can you help me understand why you believe this is important? If you derive from List<T>, you can't override any of its meaningful methods; anyone who's changing behavior in a derived type's IEnumerable<T> implementation can't have any expectations about how a consumer uses that instance and which behaviors will be employed, as it will change based on how the instance is consumed.

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

@dotnet-policy-service
Copy link
Contributor

This pull request has been automatically marked no-recent-activity because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will remove no-recent-activity.

@jeffhandley
Copy link
Member

@xtqqczze As with #118682, I'm closing this without merge. If there's a challenge introduced with the current behavior that you think should be addressed, please file an issue where we can discuss the trade-offs.

Generally speaking, behavioral changes need to be agreed upon in an issue before a PR. Thank you for the contributions though.

@jeffhandley jeffhandley closed this Sep 2, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Meta community-contribution Indicates that the PR has been added by a community member needs-author-action An issue or pull request that requires more info or actions from the author. no-recent-activity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants