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

Docs for all overloads of ToFrozenDictionary should contain the same remark.

Open voroninp opened this issue 10 months ago • 1 comments

Type of issue

Missing information

Description

Look at the remarks section of this ToFrozenDictionary() overload.

If the same key appears multiple times in the input, the last one in the sequence takes precedence. This differs from ToDictionary, where duplicate keys result in an exception.

It's absent in other overloads.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.collections.frozen.frozendictionary.tofrozendictionary?view=net-9.0#system-collections-frozen-frozendictionary-tofrozendictionary-2(system-collections-generic-ienumerable((system-collections-generic-keyvaluepair((-0-1))))-system-collections-generic-iequalitycomparer((-0)))

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Collections.Frozen/FrozenDictionary.xml

Document Version Independent Id

569b00fd-bc37-36af-1883-37c9d7666ad4

Article author

@dotnet-bot

voroninp avatar Feb 26 '25 12:02 voroninp

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