I have a linq query like the following:
dim m As iEnumerable(Of DataRow)= (From b In tbl Select b).ToList.AsEnumerable
Where 'tbl' is a DataTable that has a huge number of rows and is updated all the time (Adding rows, removing rows, and modifying fields).
I've got an error of "Collection was modified" and couldn't run the part (.ToList)
The 'tbl' is always modified all the time and I don't want to stop the updates.
How can I retrieve an instance or at least How to access the query for reading only?
I want the query as the state when the query executed and I need it with no updates.
Any idea