dotnet / dotnet/runtime

Allow SortedDictionary overwrites while enumerating

Open
#129,746 4 comments 1 reaction 0 assignees View on GitHub
area-System.Collections
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

`Dictionary` allowed this in https://github.com/dotnet/runtime/pull/34667 in .NET 5.

Should other dictionary implementations allow this as well, e.g, SortedDictionary?

Related to https://github.com/dotnet/aspnetcore/pull/67384

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the behavior introduced for Dictionary in pull request 34667, then inspect how SortedDictionary handles overwrites during enumeration. Compare the related ASP.NET Core pull request 67384 for context. Done means the expected behavior is decided, implemented if appropriate, and covered by tests for SortedDictionary enumeration.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.