c# list remove item with condition code example
Example 1: remove items from list c# condition
prods.RemoveAll(s => s.ID == 1)
Example 2: remove from list based on condition c#
List<Int32> prods = GetListFromSever();
prods.RemoveAll(s => s.ID == 1)