A way to dynamically compile and execute any expression having the list of parameters. #307
Rotabor
started this conversation in
Show and tell
Replies: 2 comments 8 replies
-
Maybe you can directly use |
Beta Was this translation helpful? Give feedback.
6 replies
-
@Rotabor i created a Rules based system to build and store expressions. a crappy version that i forked i am working on an improved version (portion of code below for improved version). i slightly modified your code which is the Invoke method. Eval and Invoke accomplish the same thing.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was troubled to compile an expression dynamically when it's not possible to hardcode expression's delegate. So, I want to allow the user to define the list of parameters and the expression to calculate. The compiled expression should be stored for later invocation. Here is the way how I solved this task.
Results:
Beta Was this translation helpful? Give feedback.
All reactions