Witam,
Zrobiłem sobie taką klasę:
public class Wentylator
{
public int ID { get; set; }
public int IDFirmy { get; set; }
public string nazwa { get; set; }
public double a { get; set; }
public double b { get; set; }
public double c { get; set; }
public double min { get; set; }
public double max { get; set; }
}
public static class DB
{
wentylatory = new List<Wentylator>()
{
new Wentylator() { ID=2, IDFirmy=1, nazwa = "Tomahałk-1450/2450", a=-2.5,b=200,c=2500, min=7, max=31.5},
new Wentylator() { ID=3, IDFirmy=1, nazwa = "2x Wytom 250/150",a=-10,b=51,c=24,min=7, max=31.5},
new Wentylator() { ID=90, IDFirmy=1, nazwa = "Kostan", a=-94,b=251,c=2100.42, min=14, max=31.5},
}
}
I teraz mam pytanie w jaki sposób usunąć z listy wentylator o** ID=90**?
wiem, że mam skorzystać z REMOVE, albo REMOVEALL, ale nie do końca wiem, jak tego użyć