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