コード例 #1
0
ファイル: StopGroup.cs プロジェクト: gyurisb/bpmenetrend
 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
ファイル: StopGroup.cs プロジェクト: gyurisb/bpmenetrend
 public IEnumerable <Transfer> Transfers(int radius)
 {
     return(Stops
            .SelectMany(s => s.Transfers)
            .Where(t => t.Distance <= radius));
 }