【发布时间】:2010-11-15 12:43:34
【问题描述】:
c#中可以有动态操作符吗?
string aString = "5";
int a = 5;
int b = 6;
string op = "<";
//want to do something like dynamically without checking the value of op
if( a op b)
【问题讨论】:
-
尝试在谷歌上搜索 C# Eval 实现,因为这听起来像您正在寻找的。span>