DCSIMG
Linq,C# - Ariel's Remote Data Center

Browse by Tags

All Tags » Linq » C# (RSS)

Cool LINQ trick

Posted Dec 22 2008, 07:31 PM by Ariel Ben Horesh  

Today I was approached with a nice question. Suppose we have a simple class with a few properties. We want to do a linq query over it with a where clause. (it doesn’t matter what is the data source, in this case it will be plain CLR objects). Let’s say that we want to construct our Where clause in such...
תגים:, , ,