List<object1> list = GetList(); List<object1> list2 = list; foreach(list g in list) { if (!list2.Contains(g)) { Method1(); } }
if(!list.Any(g=>list2.Contains(g)) { Method1(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)