Ejemplo n.º 1
0
        public Dictionary <string, Dictionary <Dictionary <string, string>, string[]> > PropertiesToDictionary()
        {
            Dictionary <string, Dictionary <Dictionary <string, string>, string[]> > properties = null;

            switch (m_Vehicle.GetVehicleType())
            {
            case eVehiclesTypes.Car:
                properties = ((Car)m_Vehicle).PropertiesToDictionary();
                break;

            case eVehiclesTypes.Motorcycle:
                properties = ((Motorcycle)m_Vehicle).PropertiesToDictionary();
                break;

            case eVehiclesTypes.Truck:
                properties = ((Truck)m_Vehicle).PropertiesToDictionary();
                break;
            }

            return(properties);
        }