예제 #1
0
파일: Car.cs 프로젝트: itayko2/csharp_2019
        public static new List <VehicleProperties> GetRequiredProperties()
        {
            List <VehicleProperties> properties = Vehicle.GetRequiredProperties();

            properties.Add(new VehicleProperties(typeof(Car.eCarColor), "Color Of Car"));
            properties.Add(new VehicleProperties(typeof(Car.eNumberOfCarDoors), "Number Of Doors"));

            return(properties);
        }
예제 #2
0
        public static new List <VehicleProperties> GetRequiredProperties()
        {
            List <VehicleProperties> properties = Vehicle.GetRequiredProperties();

            properties.Add(new VehicleProperties(typeof(Motorcycle.eMotorcycleLicenseType), "License Type"));
            properties.Add(new VehicleProperties(typeof(int), "Engine Displacement"));

            return(properties);
        }
예제 #3
0
        public static new List <VehicleProperties> GetRequiredProperties()
        {
            List <VehicleProperties> properties = Vehicle.GetRequiredProperties();

            properties.Add(new VehicleProperties(typeof(float), "Maximum Load Weight"));
            properties.Add(new VehicleProperties(typeof(bool), "Carrying Hazardous Materials"));

            return(properties);
        }