Example #1
0
        // Returns pointer to room with specified ID
        // If there is no room with such ID method returns NULL
        //public Room GetRoomById(int id)
        //{
        //    Dictionary<int, Room*>.iterator it = _rooms.find(id);
        //    return it != _rooms.end() ? it.second : null;
        //}

        // Returns number of parsed rooms
        //C++ TO C# CONVERTER WARNING: 'const' methods are not available in C#:
        //ORIGINAL LINE: inline int GetNumberOfRooms() const
        public int GetNumberOfRooms()
        {
            return((int)room.Count());
        }