-
Notifications
You must be signed in to change notification settings - Fork 5.5k
KeyedCollection debug view doesn't work #96116
Copy link
Copy link
Closed
Labels
area-System.CollectionsenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Milestone
Metadata
Metadata
Assignees
Labels
area-System.CollectionsenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
KeyedCollectionabstract base class has a debug proxy defined:runtime/src/libraries/System.ObjectModel/src/System/Collections/ObjectModel/KeyedCollection.cs
Lines 10 to 14 in 7bb99e9
However, I don't believe it works correctly because it assumes one open generic type and
KeyedCollectionhas two.And no debug proxy is used when viewing a type that inherits from

KeyedCollectionwith the debugger:Reproduction Steps
Expected behavior
A user-friendly debug view.
Should the debug view be a list or a name/value collection? A list is probably more appropriate.
Actual behavior
Default debug view.
Regression?
No response
Known Workarounds
No response
Configuration
net9.0
Other information
No response