remove element from list foreach c sharp code example Example: c# remove from list in foreach myList.RemoveAll(x => x.SomeProp == "SomeValue");