remove all matching elements from arrayc# 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)