c# remove elements from a list matching a value 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)