Author Archives: Pierre IRRMANN

Polymorphic enums in C#, generic incrementation

During the implementation of my polymorphic enum, I have chosen to allow several types for the underlying “ordinal” value, as it is also possible for standard C# enums… From the MSDN documentation, the allowed underlying types for enum types are … Continue reading

Posted in Syntax Puzzles | Tagged , , | Comments Off

Polymorphic enums in C# ?

Using Java as a inspiration source for C# (hmm wait, hasn’t that already been done from the start ?) A few weeks ago, I read this post by @cyriux, describing how you could use polymorphic enums in Java. Actually, I … Continue reading

Posted in Syntax Puzzles | 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