值来自xml
,用户只声明要执行的条件.
string condition ="25<10";
Run Code Online (Sandbox Code Playgroud)
现在,我想在if条件下使用它:
if(condition)
{
//my condition
}
Run Code Online (Sandbox Code Playgroud)
我收到了这个错误
Cannot implicitly convert type string to bool
Run Code Online (Sandbox Code Playgroud)
谁能告诉我怎么做?