Skip to content
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

Inconsistent debug views of dictionaries #91506

Closed
arturek opened this issue Sep 2, 2023 · 4 comments
Closed

Inconsistent debug views of dictionaries #91506

arturek opened this issue Sep 2, 2023 · 4 comments

Comments

@arturek
Copy link
Contributor

arturek commented Sep 2, 2023

Currently standard dictionary classes have two different ways of showing their content in a debugger. The non-generic dictionary classes (i.e. Hashtable and SortedList) presents keys and values in separate columns:
Hashtable debug view

On the other hand, generic dictionaries show their content as a list indexed by numbers with keys and values together:
Generic dictionary debug view

I assume, that this difference is not intended, so presenting all of them more consistently would be an improvement. In my opinion, the first view looks better, closer to the idea of a dictionary. The later view is better for lists (or anything indexed by numbers). But choosing any of them should help.

What do you think about it?

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Sep 2, 2023
@ghost
Copy link

ghost commented Sep 2, 2023

Tagging subscribers to this area: @dotnet/area-system-collections
See info in area-owners.md if you want to be subscribed.

Issue Details

Currently standard dictionary classes have two different ways of showing their content in a debugger. The non-generic dictionary classes (i.e. Hashtable and SortedList) presents keys and values in separate columns:
Hashtable debug view

On the other hand, generic dictionaries show their content as a list indexed by numbers with keys and values together:
Generic dictionary debug view

I assume, that this difference is not intended, so presenting all of them more consistently would be an improvement. In my opinion, the first view looks better, closer to the idea of a dictionary. The later view is better for lists (or anything indexed by numbers). But choosing any of them should help.

What do you think about it?

Author: arturek
Assignees: -
Labels:

area-System.Collections, untriaged

Milestone: -

@stephentoub
Copy link
Member

Duplicate of #88736

@stephentoub stephentoub marked this as a duplicate of #88736 Sep 2, 2023
@Neme12
Copy link

Neme12 commented Sep 2, 2023

I like the first option as well. It would be a nice improvement.

@tarekgh
Copy link
Member

tarekgh commented Sep 3, 2023

Closing this as we are tracking the same issue in #88736. @arturek thanks for opening this issue. Feel free to comment more on #88736 if you feel there is anything missing there.

@tarekgh tarekgh closed this as completed Sep 3, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Sep 3, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants