예제 #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 }));
 }
예제 #2
0
 public IEnumerable <Transfer> Transfers(int radius)
 {
     return(Stops
            .SelectMany(s => s.Transfers)
            .Where(t => t.Distance <= radius));
 }