remove from list based on condition c#

C#
prods.RemoveAll(s => s.ID == 1)List<Int32> prods = GetListFromSever();
prods.RemoveAll(s => s.ID == 1)
Source

Also in C#: