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
Compilation error (line 19, col 32): The type 'IEvent' cannot be used as type parameter 'T' in the generic type or method 'EventPublisherProvider.Publish<T>(IEnumerable<T>)'. There is no implicit reference conversion from 'IEvent' to 'IAccountEvent'.
Compilation error (line 19, col 32): The type 'IEvent' cannot be used as type parameter 'T' in the generic type or method 'EventPublisherProvider.Publish<T>(IEnumerable<T>)'. There is no implicit reference conversion from 'IEvent' to 'ICorrelatedEvent'.
Compilation error (line 19, col 32): The type 'IEvent' cannot be used as type parameter 'T' in the generic type or method 'EventPublisherProvider.Publish<T>(IEnumerable<T>)'. There is no implicit reference conversion from 'IEvent' to 'ICorrelatedEvent'.