Replies: 4 comments 1 reply
-
MSDN say it is still there? |
Beta Was this translation helpful? Give feedback.
-
Nah... look closer MSDN doesn't even list CompileToMethod. Sorry, I put spaces in the name yesterday. My fault. That's the thing that has gone missing. Compile is still there, but that doesn't generate IL into a type object, which seems to be where constants are stored? |
Beta Was this translation helpful? Give feedback.
-
BTW.... the super weird bit is that .NET-5 compiles with that method and then the most recent .NET 6 doesn't. So.... I'm a bit confused and can't find any documentation about why it has vanished. |
Beta Was this translation helpful? Give feedback.
-
Ah... it looks like this was compiled out (since it is the debug trace. I can just fixup the conditional. |
Beta Was this translation helpful? Give feedback.
-
I started to try and compile this for .NET core 6, and am running into the problem that LambdaExpression.Compile to method has been removed from the framework (for unclear reasons). It looks like compiling to a delegate would still be possible, but the handling of constants in the expression would somehow need to change due to no longer having a type.
Unfortunately, I'm not quite clear on how that might work - any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions