Write a simple Comparer. Then use Union
and pass in the comparer
public class DBComparer : IEqualityComparer<DB>
{
public bool Equals(DB x, DB y)
{
return x.answer == y.answer;
}
public int GetHashCode(DB db)
{
return db.answer.GetHashCode();
}
}
var filteredList = list1.Union(list2,new DBComparer()).ToList();