///Find the node whose name is NAME public Stop FindStop(string NAME) { return(Stops.FirstOrDefault(s => s.Name == NAME)); }
//helper function--property indexer internal Stop this[int floor] { get { return(Stops.FirstOrDefault(stop => stop.Floor == floor)); } }