A
Abe Frohnman
Hello all,
I'm having problems using an ArrayList. The two lines of relevant code
are here:
roomsArray.Add(new Area(roomNumber));
labelRoomNumber.Text = "You're currently building room number " +
(Area)(roomsArray[0]).RoomNum;
When I try to compile this, I get this error message: 'object' does not
contain a definition for 'RoomNum'.
How can I access a method from my Area class when its part of an ArrayList?
Thanks!
~af
I'm having problems using an ArrayList. The two lines of relevant code
are here:
roomsArray.Add(new Area(roomNumber));
labelRoomNumber.Text = "You're currently building room number " +
(Area)(roomsArray[0]).RoomNum;
When I try to compile this, I get this error message: 'object' does not
contain a definition for 'RoomNum'.
How can I access a method from my Area class when its part of an ArrayList?
Thanks!
~af