Hi oliverjohn-7119,
The C# doesn't support anything like this directly.
The closest options are:
- Create a full valid C# program and dynamically compile it with CSharpCodeProvider.
- Build an expression tree, compile and execute it
More details I suggest you refer to the following links:
[C# Eval() support duplicate
How can I evaluate C# code dynamically?
eval(string) to C# code
Is there any function in .Net similar to EVAL of Javascript?
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.