Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Documentation for Enumerable.ToDictionary refers to inapplicable concept of "groups" #10377

Copy link
Copy link
Open
@antonburger-alcove

Description

@antonburger-alcove
Issue body actions

Type of issue

Other (describe below)

Description

The docs for a couple of overloads of ToDictionary state:

The values within each group are in the same order as in source.

The concept of "group" doesn't apply to this operation, and that sentence looks like it might be left over after copying the docs for ToLookup.

It also suggests there's some kind of guarantee about the order of items in the resulting Dictionary<K, V>, when that type makes no ordering guarantees.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.todictionary?view=net-8.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Linq/Enumerable.xml

Document Version Independent Id

58d09d91-dc91-5480-8c81-f13a0c8eb2a5

Article author

@dotnet-bot

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityIndicates issues/PRs that are low priorityarea-System.Linq

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.