Skip to content

Debugger display of dictionary types and DebuggerDisplayAttribute.Name #88736

Closed
@JamesNK

Description

@JamesNK

DebuggerDisplayAttribute has Name and Type properties. We never use these.

A place Name is useful is collection items. It can be used to display a custom name instead of an index in a debugger window.

Before:

image

After:

image

This seems like an improvement to me. It's easier to see what the keys and values are.

I was wondering why IDictionaryDebugView and other dictionary type proxies don't use this feature. Right now the key and value are squashed together in the debugger, and a meaningless index is displayed as the name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.CollectionsenhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions