public bool LoadFuel(Fuel fuel) { if (!(fuel is Diesel)) return false; tank = fuel as Diesel; return true; }
public bool LoadFuel(Fuel fuel) { if (!(fuel is Diesel)) { return(false); } tank = fuel as Diesel; return(true); }