If this post helps you mark it as answer Thanks
var list1 = new string[] {"1", "2", "3", "4", "5", "6"}; var list2 = new string[] {"2", "3", "4"}; var listResult = list1.Except(list2); foreach (string s in listResult) Console.WriteLine(s);
Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
var com1 = new string[] {"1", "2", "3", "4", "5", "6"}; var com2 = new string[] {"2", "3", "4"}; foreach (string com in com1 ) { if (!com2.Contains(com)) { MessageBox.Show(com); } }
Login to post response