Expression.Compile() on WindowsPhone 7

added by cristoph1
5/3/2010 3:36:33 PM

0 Kicks, 87 Views

An interesting thing on WindowsPhone 7 platform is that sometimes a LambdaExpression can be compiled and sometimes not; how come? we was confused too and reason is that Replection.Emit is not supported on WindowsPhone7 and Expression.Compile() sometimes use Reflection.Emit and sometimes not, depends of your expression so sometimes works and sometimes not. Problem was confirmed by Microsoft :