Skip to content

Dump() not working with uncapsulated List<T> #1

Description

@sdrapkin
void Main() // LinqPad 6 v6.9.7 x64 beta
{
	var list = new List<string> { "hello" };
	var uncapsulatedList = list.Uncapsulate();

	uncapsulatedList.Dump(); // private "_items" array is not shown
	uncapsulatedList.Dump(includePrivate: true); // doesn't work either
	uncapsulatedList._items.Dump(); // explicit access works though
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions