예제 #1
0
 public void UpgradeRack <TRackType>() where TRackType : IRack
 {
     Racks.Find(rack => rack is TRackType).
     Upgrade();
 }
예제 #2
0
 public void FillRack <TRackType>(int amount) where TRackType : IRack
 {
     Racks.Find(rack => rack is TRackType).
     Fill(amount);
 }