示例#1
0
 public bool LoadFuel(Fuel fuel)
 {
   if (!(fuel is Diesel))
     return false;
   tank = fuel as Diesel;
   return true;
 }
示例#2
0
 public bool LoadFuel(Fuel fuel)
 {
     if (!(fuel is Diesel))
     {
         return(false);
     }
     tank = fuel as Diesel;
     return(true);
 }