Welcome to MSDN Blogs Sign in | Join | Help

May 2007 - Posts

Dealing with Linq’s Immutable Expression Trees

Jomo Fisher --I recently got a question via my blog that dovetailed nicely with something I’ve been working on: I know that expression trees are (or at least appear to be) immutable - which requires that you rewrite the entire tree if you want a tree
Posted by Jomo Fisher | 8 Comments
Attachment(s): ExprOpSample-Beta1.cs

Leaky Functions\Barrel of Bugs

Jomo Fisher--Pop quiz. Consider this function call in C#: a = MyFunction(b); What information is exchanged between the caller and the function? When is the information exchange done? It would be nice if the answer was: MyFunction takes value b and returns
Posted by Jomo Fisher | 13 Comments
Filed under: ,

Visitor Revisitted: LINQ, Function Composablity and Chain of Responsibility

Jomo Fisher— Last time , I wrote about constructing an inline visitor using new C# language features. It worked fine for what it did, but it completely falls down when you want to extend existing visitors that you’ve created. What if I wanted to modify

Inline Visitor Construction using LINQ

Jomo Fisher—My current job is in the C# team working on LINQ to SQL. Because of nature of programming languages, very few days go by that I don’t deal with syntax trees and the visitor pattern. Occasionally, it would be convenient to create a quick one-off
Posted by Jomo Fisher | 4 Comments
Filed under: ,
 
Page view tracker