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