❔ Evaluating C# Expressions At Runtime

I am looking alternative ways to evaluate C# expression at runtime. I have used Roslyn Scripting API CSharpScript.RunAsync but as mentioned github issues, its not designed to be called continuously because it keep creating new assembly in memory and not unloaded, causes memory leak (https://github.com/dotnet/roslyn/issues/41722)
3 Replies
atakancracker
atakancracker8mo ago
https://eval-expression.net/ this library which is licenced seems good tool to what I want to achieve
C# Eval Expression
Learn C# Eval Expression using C# Eval Expression by documentation & example
atakancracker
atakancracker8mo ago
My project structure is like decision tree with left and right nodes and each node has C# expression that output of expression decides which leaf to continue therefore I have continuous set of expression evaluation need evaluator that can fit this requirement in performance manner
Accord
Accord8mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.