Пример #1
0
 public override string ToString()
 {
     return(string.Format("Fuel Based Car:{0}{1}Fuel Tank Information:   {2}{3}", Environment.NewLine, base.ToString(), Propulsion.ToString(), Environment.NewLine));
 }
Пример #2
0
        public override string ToString()
        {
            string hazardousParseString = "Is Hazardous !!!";

            if (IsHazardous == false)
            {
                hazardousParseString = "is not hazardous ";
            }

            return(string.Format("{0}Volume Of Cargo: {1} ccm   risk factor: the trucks cargo {2} {3}Fuel Tank Information:   {4}{5}", base.ToString(), m_VolumeOfCargo.ToString(), hazardousParseString, Environment.NewLine, Propulsion.ToString(), Environment.NewLine));
        }
Пример #3
0
 public override string ToString()
 {
     return(string.Format("Electricity Based Motorcycle:{0}{1}Battery Information:   {2}{3}", Environment.NewLine, base.ToString(), Propulsion.ToString(), Environment.NewLine));
 }