remove all matching elements from list c# code example
Example: remove from list based on condition c#
List<Int32> prods = GetListFromSever();
prods.RemoveAll(s => s.ID == 1)
List<Int32> prods = GetListFromSever();
prods.RemoveAll(s => s.ID == 1)