Project Description

Class library that allows developers to use LINQ to search through and edit expressions in place, without having to manually recreate the expressions.

Read more about it on my blog (http://blog.magenic.com/blogs/aarone/archive/2007/05/24/Announcing-MetaLinq-_2D00_-Linq-to-Expressions.aspx).

Updates:


MetaLinq now supports serializing EditableExpression objects to XML and back, thus allowing serialization of expression trees.

Download latest version
Last edited Oct 5 2008 at 6:10 PM by idof, version 4
Comments
Kire wrote  Dec 22 2008 at 9:17 AM 
In the class EditableMethodCallExpression the overridden method ToExpression() has a flaw, other overloads of the method Expression.Call are not taken in consideration. So when it’s called a static method there is no need an expression to be passed as parameter so that parameter is null but the method ToExpression() is throwing an exception. So, this should be resolved as something like:
if(Object == null)
return Expression.Call(Method, Arguments.GetExpressions().ToArray<Expression>());
else
return Expression.Call(Object.ToExpression(), Method, Arguments.GetExpressions().ToArray<Expression>());
instead of:
return Expression.Call(Object.ToExpression(), Method, Arguments.GetExpressions().ToArray<Expression>());

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | CodePlex Blog | Version 2008.12.9.14291