public static void InitiateParkingSpaceArray() { for (int i = 0; i < lotSize; i++) { parkingSpaces[i] = new ParkingSpace(); } }
/// <summary> /// Initializes a new instance of the <see cref="Parking"/> class. /// </summary> public Parking() { parkingSpaces = new ParkingSpace[100]; for (int i = 0; i < parkingSpaces.Length; i++) { parkingSpaces[i] = new ParkingSpace(); } }