I have two classes. PostgreSQL and SQLite. The first defines the GetGUIDsFromPG() method in the second GetGUIDsFromSQLite() . Each method returns a List<string> .
Now I need to perform their intersection. Writing:
DataExistInSQLiteButNotInFB = sqllite.GetGUIDsFromSQLite().Intersect(GetGUIDsFromFB()); However, the studio swears that it is impossible to bring the type of one to the type of the other. The question is how to be? As I understand it, the only problem is that they have different classes.
Definition (each in its class):
public List<string> GetGUIDsFromSQLite() { } -
public List<string> GetGUIDsFromFB() { } Can not convert source type 'System.Collections.Generic.IEnumerable to target type' System.Collections.Generic.List '