How can I evaluate C# code dynamically?

后端 未结 16 1937
[愿得一人]
[愿得一人] 2020-11-22 03:37

I can do an eval(\"something()\"); to execute the code dynamically in JavaScript. Is there a way for me to do the same thing in C#?

An example of what I

16条回答
  •  你的背包
    2020-11-22 04:22

    Uses reflection to parse and evaluate a data-binding expression against an object at run time.

    DataBinder.Eval Method

提交回复
热议问题