dotnet-api-docs icon indicating copy to clipboard operation
dotnet-api-docs copied to clipboard

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

Open antonburger-alcove opened this issue 1 year ago • 1 comments

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

antonburger-alcove avatar Sep 09 '24 08:09 antonburger-alcove

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