📜  使用 LINQ 计算笛卡尔积或组合 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:59.030000             🧑  作者: Mango

代码示例1
var s1 = new[] {a, b}; 
var s2 = new[] {x, y, z}; 
var product = 
    from first in s1 
    from second in s2 
    select new[] { first, second };