示例#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);
 }