3 ms·
Well, each linq "operator" is just an extension method to the ienumerable interface that are chained together. So nothing prevents you from doing your own ope
by mhomde 12y ago
Well, each linq "operator" is just an extension method to the ienumerable interface that are chained together. So nothing prevents you from doing your own operators.
Most of the features that came along around the time of LINQ (var variables, extension methods, anonymous classes, lambdas etc) was done specifically to support the LINQ kinda syntax but LINQ in itself is not so much part of the language as it is of the .net libraries.
Btw, I personally think the "dot notation" syntax is superior to the "query expression". It's easy to follow from start of the line to the end and you get great autocompletion along the way.
- codesforhugs 12y agoGenerally agree, but it depends a lot on the query. I find that join syntax especially is more readable in the query style.
- Glide 12y agoI liked chaining expressions for things that were done in memory and query style for deferred. My brain handled the code a bit better when things were written that way.