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

감사 메흐 다드. – user160677

+1

어떤 조합을 조합뿐만 아니라 순열을 얻기 위해 효율적으로 수행하는 방법? ({ "A", "C#"} 및 { "C#", "A"}는 두 개의 sepeate 항목으로 간주됩니다)? –

관련 문제