-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
dotnet/corefx
#41386Labels
area-System.LinqenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Milestone
Description
Today I was debugging an xUnit theory that accepted an IEnumerable<int>. In my test data method, I was generating the enumerable via Enumerable.Range. When I looked at the enumerable in the debugger, it was stringified to {System.Linq.RangeIterator}. I needed to evaluate the enumerable via 'Results View' and count the number of elements displayed to find the count.
Can we consider just displaying the count in the debugger display if we know it already? We can even consider adding more information for a few iterators, where there's not a risk of stringifying a really long collection or evaluating user-supplied functions. For example, we can show Start = x, Count = y in the debugger display for Range and Element = ..., Count = x for Repeat.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.LinqenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors