Exemplo n.º 1
0
 static BierenService()
 {
     bieren [1] = new Bier {
         ID = 1, Naam = "Stella Artois", Alcohol = 15F
     };
     bieren [2] = new Bier {
         ID = 2, Naam = "Heineken", Alcohol = 0.02F
     };
     bieren [3] = new Bier {
         ID = 3, Naam = "Carlsberg", Alcohol = 5F
     };
 }
Exemplo n.º 2
0
 public void Add(Bier b)
 {
     b.ID = bieren.Keys.Max() + 1;
     bieren.Add(b.ID, b);
 }