Check out example codes for "c# remove Collection was modified; enumeration operation may not execute.". It will help you in understanding the concepts better.

Code Example 1

for(int i = list.Count - 1; i >= 0; i--) {
    if({some test}) list.RemoveAt(i);
}

Learn ReactJs, React Native from akashmittal.com