Ejemplo n.º 1
0
 public IEnumerable <StopGroup> TransferTargets(int radius)
 {
     return(Stops
            .SelectMany(s => s.Transfers)
            .Where(t => t.Distance <= radius)
            .GroupBy(t => t.Target.Group)
            .Select(t => t.Key)
            .Except(new StopGroup[] { this }));
 }
Ejemplo n.º 2
0
 public IEnumerable <Transfer> Transfers(int radius)
 {
     return(Stops
            .SelectMany(s => s.Transfers)
            .Where(t => t.Distance <= radius));
 }