I am still learning LINQ, and I have a collection of anonymous types obtained using the following. [mycontext] is a placeholder for my actual data source:
var items = from item in [mycontext] select new { item.col1, item.col2, item.col3 };
How can I use items.Contains() to determine if items contains an appropriate value?
The value I'm looking for is not anonymous. So I will need to write my own comparison logic, preferably as a lambda expression.
source share