Exemplo n.º 1
0
 public static string[] GetLineShortNames(this LuasLines stopList) =>
 stopList.Line.Select(x =>
                      x.Name.Split(' ')
                      .Skip(1)
                      .FirstOrDefault())
 .ToArray();
Exemplo n.º 2
0
 public static int GetIndexOfShortName(this LuasLines stopList, string shortName) =>
 Array.IndexOf(
     GetLineShortNames(stopList)
     .Select(x => x.ToLower())
     .ToArray(),
     shortName.ToLower());