Some basic sample to make your code “Linq ready”

  Linq has been shipped with VS2008/.Net 3.5 and is not really new. If more and more people are getting used to its syntax, it’s sometimes hard to imagine all the scenarii where Linq to object can replace the classical way we program. During some Silverlight coding, I changed my code to make it run…


C# 4 expressions: loops, goto, label, if and even for ! [Part III]

We now have block and variable support in our very small meta language. Let’s try to use this basic engine to add higher functionalities. .Net 4.0 expression API also brings new instructions such as Loop, Goto, Label, IfThenElse, etc. We will add them with always the same process: adding a comprehensive method in the Block…


C# 4 expressions: variables [Part II]

Reading the first part is mandatory ! The goal is still the same: enhance the C# 4 expression capabilities. Now we have block support, let’s find a way to add variables. We can not really ‘code’ something without them… In our first sample, the main lambda already had a parameter and we were able to…


C# 4 expressions: blocks [Part I]

  Since .Net 3.5 and Linq, the C# compiler is capable of generating expression trees instead of standard executable IL. Even if Linq opens the door of meta-programming (using the code to define something else, like a Sql query), we still have a lot of limitations. A C# expression is limited to a single instruction…


Read/Write selector in C# 3 then C# 4

I needed some quiet time to finish this article so I took some vacations here (Mauritius Island)   Expressions are used to evaluate something. We usually use them in the right side of an affectation or at any place where a value is expected. It can be composed with many other values, with computations or…


Surface Academy Toolkit 2009

Just a quick post to share this project with you. Microsoft France organized a 2 month long internship in Paris to develop a Surface Toolkit. We have provided a bunch of controls, including a Card Game Surface Starter kit that you can see here: The project on Codeplex:


Serving Silverlight Apps from Windows Mobile

For the last Paris mobility briefing, my colleague Pierre Cauchois asked me to co-animate the Coding4Fun session…hard to refuse. Even if mobile dev is not my every day work, thanks to the .Net Compact Framework, it’s still .Net programming. Here is the scenario: You come back home, you have a windows mobile phone wifi capable…


Linq: how to share parameters between lambda expressions ?

Before going into Linq, here is again one of my pictures: Le Louvre by night, Paris   When using Linq to objects, you will quickly feel the need to pass some parameters from a method to another but it’s not so easy because each Linq method is not calling the following one. In a Linq…


WPF/Surface demo: driving an extending desktop with a popfly duck !

Contrarily to the title, this is a serious article ! From 10th to 12th of February Microsoft France have organized the Paris Techdays event. During the developer keynote, I have presented some Surface development features with a funny demo. Here is a video of this demo but in french. Now let me explain what happened….


[Coding4Fun]: understanding WinForms designmode

We have just finished the french Paris Techdays today. I had organized a Coding4Fun session and here is on of the demo which is…let’s say special :p. You can find the code attached to this post.