1

Closed

Expression API regression

description

The attached test case pass on .net 3.5 and fails on .net 4.0.

file attachments

Closed Apr 30, 2010 at 8:16 PM by dinov

comments

jmesserly wrote Apr 20, 2010 at 11:02 PM

Quote was changed in 4.0 to only work on LambdaExpressions. Behavior on things other than LambdaExpression was undefined--sometimes it seemed to do something useful (equivalent to storing the tree in Expression.Constant), but sometimes it generated incorrect IL. There's more information in the expression tree spec: http://dlr.codeplex.com/Project/Download/FileDownload.aspx?DownloadId=85661.

jbevain wrote Apr 22, 2010 at 11:41 AM

Fine then.

wrote Apr 30, 2010 at 8:16 PM

wrote Feb 21, 2013 at 10:41 PM

wrote May 16, 2013 at 10:29 AM