I have some samples for sorting and comparison that compile successfully but throw an InvalidProgramException when the compiled function is executed. The expression tree does compile correctly with the .NETs Compile() method.
[Unittest code]
https://github.com/bluewingHuang/FastExpressionCompiler/blob/SortCompileError/CompileTest/SortCompilerTests.cs
[Unittest project ]
https://github.com/bluewingHuang/FastExpressionCompiler/tree/SortCompileError/CompileTest
.NET Version: 6.0
FEC Version: v5.4.0
I have some samples for sorting and comparison that compile successfully but throw an InvalidProgramException when the compiled function is executed. The expression tree does compile correctly with the .NETs Compile() method.
[Unittest code]
https://github.com/bluewingHuang/FastExpressionCompiler/blob/SortCompileError/CompileTest/SortCompilerTests.cs
[Unittest project ]
https://github.com/bluewingHuang/FastExpressionCompiler/tree/SortCompileError/CompileTest
.NET Version: 6.0
FEC Version: v5.4.0