I am using an IEnumerable and in the debugger I would like to see the items that it has, but I can't because there is not any property neither items.
Is it possible to see the items that has the IEnumerable?
Use the "local" window and expand the Results View.
By doing what this instructs you to do:
I.e. click on those circular arrows on the left of the highlighted area.
As an alternative to expanding the results view, you can, in the watch window, use the "results" format specifier.
For example, if the enumerable variable is named "myIEnumerable", type "myIEnumerable, results" into the name column of the watch window.
The minor benefit of the results specifier over expanding the results view is that it avoids showing the various enumerator properties, thus preserving screen real estate for the results.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With