Mid LINQ

Compare two lists of employees?

Compare two lists of employees

bool same = list1.Select(e => e.Id).SequenceEqual(list2.Select(e =>

e.Id));

More from LINQ Tutorial

All questions for this course