Пример #1
0
        public static void SetDoor(Vehicles io_Vehicle)
        {
            Utils.DoorNumbers door;
            System.Type       vehicleType      = io_Vehicle.GetType();
            PropertyInfo      doorPropertyInfo = vehicleType.GetProperty("DoorNumber");

            if (doorPropertyInfo != null)
            {
                door = GarageUI.GetDoor();
                doorPropertyInfo.SetValue(io_Vehicle, door, null);
            }
        }