Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugger friendly list class

The generic list class show lots of more or less useless information in debugger, like _syncRoot, Capacity and so on. Even the _items field is a little bit annoying. Is there a way to get debug information that is as smart as usual? Or is something comparable to DebuggerDisplay attribute for build-in classes?

like image 889
Harald Hoyer Avatar asked Jul 08 '26 16:07

Harald Hoyer


1 Answers

The List<> class already has a visualizer:

enter image description here

Not sure why you don't see it, you'd have to select the Raw view to see private members. Which is, well, raw.

like image 137
Hans Passant Avatar answered Jul 11 '26 07:07

Hans Passant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!