var com = from exam1 in timeTable.Exams
from exam2 in timeTable.Exams
where (exam1 != exam2)
select new List<Exam> { exam1, exam2 };
timeTable is a list of Exams
How can i get com to be distinct no matter what the order of the exams are that it contains. I think it is doing permutations now i need only distinct combinations.
1 Answer