Expression API regression


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

file attachments

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


jmesserly wrote Apr 21, 2010 at 12:02 AM

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 12:41 PM

Fine then.

wrote Apr 30, 2010 at 9:16 PM

wrote Feb 21, 2013 at 11:41 PM

wrote May 16, 2013 at 11:29 AM