2009-08-25 4 views

答えて

27
Group.Where(x => x != null) 
    .SelectMany(g => combination.Where(c => c != null) 
           .Select(c => new {Group = g, Combination = c})); 

:即時応答のための

from g in Group where g != null 
from c in combination where c != null 
select new { Group = g, Combination = c } 
+0

おかげでMehrdad。 – user160677

+1

すべてのアイデアどのように組み合わせだけでなく、順列を得るために効率的にこれを行うには? ({"A"、 "C#"}と{"C#"、 "A"}は2つのセピアアイテムとみなされます)? –

関連する問題