Answers for "how to remove from list inside foreach in c#"

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 "how to remove from list inside foreach in c#"

C# Answers by Framework

Browse Popular Code Answers by Language