Code:
            foreach (Room q in rooms)
            {
                rooms[q].rWall = "|";
                rooms[q].floorDwn = "_";
            }
When I try Room I get the error:
Cannot implicitly convert type 'MazeGen.Room' to 'int'

And when I try int q in rooms I get the error:
Cannot convert type 'MazeGen.Room' to 'int'

Thank you in advance for showing me how to cycle through the index of an array.
I have seen it to be done like this:
foreach (char ch in str)

but I'm not able to resemble it in this case.