Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
voroninp opened this issue Feb 26, 2025 · 1 comment
Labels
area-System.Collections untriaged New issue has not been triaged by the area owner

Comments

@voroninp
Copy link
Contributor

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

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Feb 26, 2025
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Collections untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant