Missing FuncletExpression and LiftExpression in Visual Studio 2008 Beta 2

I believe this is good to share this to everyone. Basically I find nothing about this in the search engine. Furthermore, you can find about Mono or some very old post. Not in Beta 2.

Anyway I was looking for a replacement for FuncletExpression and LiftExpression in Visual Studio 2008 Beta 2. I am actually trying to migrate the NHibernate.LINQ (http://blogs.magiconsoftware.com/files/folders/8/download.aspx) example to support VS 2008 Beta 2. I emailed Ayende Rahien but he asked me to refer to the release notes.

So I decided to post in the C# Mailing List. Below is the response:

// Response from Microsoft

Chua Wen Ching –

There are no direct replacements for these two Expression Tree nodes in the Beta2 or RTM versions of the LINQ API – but uses of either should be possible by other means:

-          In place of FuncletExpressions, you will typically just use a ConstantExpression with the pre-evaluated version of the value that node represents. 

-          In place of LiftExpressions, the other expression tree nodes, such as BinaryExpression and UnaryExpression now automatically handle lifting for you.  For example, if passed nodes of nullable type as arguments, the Expression.Add(…) constructor will generate a BinaryExpression which has Lifted==true.

Hope that helps.

Thanks,

Luke

///////////////////

Cheers.

Published Thursday, September 27, 2007 8:37 AM by chuawenching