I have a regular, in-memory List<T>
containing approximatley 10k items. When I'm trying to query this list in the visual studio immediate window I get an error:
MyList.Where(m => m.Name.StartsWith("x"))
{System.Linq.Enumerable.WhereListIterator<T>}
Error: Evaluation timed out
I checked the source for System.Linq.WhereListIterator<T>
and it does not appear to throw any exceptions, so I'm guessing it is the immediate window that decides when to time out the query. Is there any way to configure when to time out or avoid this in another way?
Just evaluate this expression using ToArray()
or ToList()
like this MyList.Where(m => m.Name.StartsWith("x")).ToList()
.
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