I have two collections ProdList<Product, int>
and RuleList<Product, int>
contains list of products and counts.
how do i get if RuleList all items partici in ProdList collection I ve tried with
bool a= ProdList.All(x => RuleList.Contains(x));
but it does not work.
Equals
method and then your code will work