Category Archives: LINQ

Cartesian products in LINQ (fluent syntax)

Have you ever tried to combines sequences in order to build Cartesian products in LINQ ? This is really easily achieved using the query expressions syntax, writing for instance : var ints = Enumerable.Range(1, 4); var longs = Enumerable.Range(1, 3).Select(i … Continue reading

Posted in LINQ | Tagged , , | Comments Off

Using BDD and SpecFlow to write readable tests

In this post, I’m going to use SpecFlow and the Gherkin syntax to write tests in a natural language. I want to show how easy that is to setup, when you have code that is already testable, and how it … Continue reading

Posted in LINQ | Tagged , , , , , | Comments Off

Linq provider : an attempt… part 6

Jammin’ Jammin’ Just a month ago, I’ve had the opportunity to get feedback from @cyriux and Jérôme during the monthly @ArollaFr’s Code Jam, and we made important changes in the code. The concept of a Code Jam is simple : … Continue reading

Posted in LINQ | Tagged , , , | Comments Off

Linq provider : an attempt… part 5

Improving the toolbox : building our own expression tree visualizations In the last two posts, I included sample visualizations of expression trees. I’ve built these using a visitor pattern, that produces HTML markup. This is a good example of the … Continue reading

Posted in LINQ | Tagged , , , , , | Comments Off

Linq provider : an attempt… part 4

Using the Visitor pattern to manipulate expression trees In the previous posts of this series, I started to describe a partial implementation of a Linq provider. The aim of this provider is to get data from a service, and in … Continue reading

Posted in LINQ | Tagged , , , | Comments Off