Skip to content

Add DebuggerTypeProxy for ListDictionaryInternal #91254

Closed
@JamesNK

Description

@JamesNK

This PR added debugger display to ListDictionaryInternal. A DebuggerTypeProxy should also be added to improve displaying the collection's contents.

The current display in VS:
image

For example:

internal sealed class ArrayListDebugView
{
private readonly ArrayList _arrayList;
public ArrayListDebugView(ArrayList arrayList)
{
ArgumentNullException.ThrowIfNull(arrayList);
_arrayList = arrayList;
}
[DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
public object?[] Items => _arrayList.ToArray();
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions