tabs ↹ over ␣ ␣ ␣ spaces

by Jiří {x2} Činčura

(Not) interesting observation on LINQ

11 Apr 2009 1 mins LINQ

I’ve found interesting stuff in last couple of … I don’t know. Well it’s not interesting because everybody knows it 😃, but using it this way, was for me like going the other direction.

First is that code comprehension (which I don’t like, btw) is translated into well known methods like Select, Where etc. You are using this in LINQ often. But it’s not coupled to IQueryable or whatever, it’s just dumb translation during compile. Hence you can easily provide i.e. only Select and Where methods in your class and use it with code comprehension. Not worrying about IQueryable or runtime exceptions if don’t support some methods. Obvious, right? I told you. 😃

Another observation is that your i.e. Where method may return completely different class or collection of classes. This is probably not usefull at all, although as a mind blowing code to torture your colleagues it can be fun. 😉

Profile Picture Jiří Činčura is .NET, C# and Firebird expert. He focuses on data and business layers, language constructs, parallelism, databases and performance. For almost two decades he contributes to open-source, i.e. FirebirdClient. He works as a senior software engineer for Microsoft. Frequent speaker and blogger at