17
1
using System;
2
using System.Linq;
3
using System.Collections.Generic;
4
5
public class Program
6
{
7
public static void Main()
8
{
9
IList<string> strList1 = new List<string>(){"One", "Two", "Three", "Four", "Five" };
10
IList<string> strList2 = new List<string>(){"Four", "Five", "Six", "Seven", "Eight"};
11
12
var result = strList1.Except(strList2);
13
14
foreach(string str in result)
15
Console.WriteLine(str);
16
}
17
}
Cached Result
Hello World