public Space this[String spaceName] { get { foreach (Space space in spaces) { if (space.name == spaceName) { return space; } } String message = "There is no space '" + spaceName + "in the wiki"; throw new Exception(message); } }