Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Enumeration

Language: Layout:
+ ] Show input
Compilation time: 0,12 sec, absolute running time: 0,11 sec, cpu time: 0,11 sec, average memory usage: 13 Mb, average nr of threads: 3 
edit mode |  history  | discussion
Error(s):
Exception in user code:

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at Rextester.EnumerationRemove.MyAwesomeListUpdateMethod()
   at Rextester.Program.Main(String[] args)