Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
c# remove Collection was modified; enumeration operation may not execute.
user11191
Programming language:
C#
2021-07-03 02:23:44
0
Q:
c# remove Collection was modified; enumeration operation may not execute.
Neil
Code:
C#
2021-03-16 19:43:37
for(int i = list.Count - 1; i >= 0; i--) { if({some test}) list.RemoveAt(i); }
1
Tags
remove
exec
enum
Related
how to make a partical system to destroy itself after it finishing
remove duplicated from object array c#
c# list remove item based on property duplicate
Collection was modified; enumeration operation might not execute. datatable c#
c# delete files older than x months
New to Communities?
Join the community