[プログラム板] C#, C♯, C#相談室 Part47
■ このスレッドは過去ログ倉庫に格納されています
0666デフォルトの名無しさん
2008/08/05(火) 23:37:27その例だと
listX.SelectMany(x => listY, (x y) => x * y)
こうなるけど、例としては不十分な気がする
これくらいにしないと
from x in listX
from y in listY
where x > y
select x * y;
listX.SelectMany(x => listY, (x, y) => new { x, y })
.Where(z => z.x > z.y)
.Select(z => z.x * z.y);
あと、let入るとさらに面倒になるな
■ このスレッドは過去ログ倉庫に格納されています