Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,892 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I tried this way but not getting desired result
List<string> _lst1 = new List<string>();
_lst1.Add("tab1");
_lst1.Add("tab2");
_lst1.Add("common");
List<string> _lst2 = new List<string>();
_lst2.Add("tab1");
_lst2.Add("tab4");
_lst2.Add("common");
var _lst3 = _lst1.Except(_lst2);
var _lst4 = _lst2.Except(_lst1);
var resultList = _lst3.Concat(_lst4).ToList();
I am getting Result is : tab2,common,tab4
but in two list the uncommon is tab2 & tab4. so i want to get uncommon from both list.....what logic i should use? thanks
Replace the second list1.Add(“common”) with list2.Add(“common”).