-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
KeyedCollection debug view doesn't work #96261
Conversation
Tagging subscribers to this area: @dotnet/area-system-collections Issue DetailsFixes #96116
|
src/libraries/System.ObjectModel/src/System/Collections/ObjectModel/KeyedCollection.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.ObjectModel/src/System/Collections/ObjectModel/KeyedCollection.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.ObjectModel/src/System/Collections/ObjectModel/KeyedCollection.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.ObjectModel/src/System/Collections/ObjectModel/KeyedCollection.cs
Show resolved
Hide resolved
@pedrobsaila before we get this merged, has the new proxy type been tested? I believe we write unit tests for a few other collections types, for example this one: |
Tested it only locally inside VS, did not make a unit test yet. |
Would you be ok adding a unit test in the mold of what I shared from collections? |
yes for sure. I'll push the tests whithin a few hours |
{ | ||
} | ||
|
||
public Func<TValue, TKey> GetKeyForItemHandler { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I think some of that indirection could be removed if you just made the derived type non-generic and inlined the GetKeyBehavior in the implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I left some feedback on a minor nitpick on the test, but it's up to you if you want to address it. Thanks!
* KeyedCollection debug view doesn't work * fix remarks 1 * fix remarks 2 * add tests
Fixes #96116