eval(string) to C# code

后端 未结 8 1947
傲寒
傲寒 2021-01-19 04:23

Is it possible to evaluate the following in C# at runtime

I have a class that contains 3 properties (Field,Operator,Value)

8条回答
  •  [愿得一人]
    2021-01-19 04:43

    I'm not entirely sure what you are saying. Can you try clarifying it a bit?

    Are you wanting to to take a string expression and evaluate it at runtime in C#? If so the answer is no. C# does not support such types of dynamic evaluation.

提交回复
热议问题