Answers for "remove elements from a list while iterating over it in c# foreach"

C#
4

c# remove from list in foreach

myList.RemoveAll(x => x.SomeProp == "SomeValue");
Posted by: Guest on February-13-2020

Code answers related to "remove elements from a list while iterating over it in c# foreach"

C# Answers by Framework

Browse Popular Code Answers by Language