using System; using System.Linq; using System.Collections.Generic; public class Test { class Product { public Product() { } public int RoleId { get; set; } public int ObjectId { get; set; } public bool Read { get; set; } public override bool Equals(object obj) { return Equals((Product) obj); } public bool Equals(Product other) { return ObjectId == other.ObjectId && Read == other.Read; } } public static void Main() { List products = new List() { new Product { RoleId = 1, ObjectId = 2, Read = false }, new Product { RoleId = 2, ObjectId = 1, Read = false }, new Product { RoleId = 1, ObjectId = 1, Read = true } }; var groupedCustomerList = products.GroupBy(u => u.RoleId) .Select(grp => grp.ToList()).ToList(); var firstGroup = groupedCustomerList.ElementAt(0); List productsListSearch = new List() { new Product {ObjectId = 2, Read = false } , new Product {ObjectId = 1, Read = true } }; var result= productsListSearch.SequenceEqual(firstGroup); Console.WriteLine(result); } }