Konstanten X kan inte kompileras med CompileToMethod eftersom den inte utgörs av ett vanligt värde, utan av till exempel ett aktivt objekt. Skapa i stället ett uttrycksträd som det här värdet kan konstrueras av.
Click to search this error in Google
English version
CompileToMethod cannot compile constant 'X' because it is a non-trivial value, such as a live object. Instead, create an expression tree that can construct this value.