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

Open Beginner friendly
#11,019 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
68/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
csharp
Domain
documentation

Research direction

Open xml/System.Collections.Frozen/FrozenDictionary.xml and locate the ToFrozenDictionary overload entries. Compare their remarks with the linked overload, add the duplicate-key behavior remark to the entries missing it, and verify every overload documents the same behavior.

Written by the indexing model from the issue text.

Description

area-System.Collections untriaged
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

Dominant language
C#
Stars
950
Forks
1.7k
Avg merge
3d 5h
Merged PRs (30d)
38

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/dotnet-api-docs

All issues in dotnet/dotnet-api-docs

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.