C# 4.0 执行规则表达式的建议
在这种情况下,用户将定义一组业务规则或表达式。那看起来就像C# 4.0 执行规则表达式的建议,c#-4.0,expression,rules,rule-engine,business-rules,C# 4.0,Expression,Rules,Rule Engine,Business Rules,在这种情况下,用户将定义一组业务规则或表达式。那看起来就像 if(riskvalue <= 100) // condition notifyObservers() // action remarks = remarkshistory //expression if(allowedriskvalue <= riskvalue) //child condition do something //can be expressio
if(riskvalue <= 100) // condition
notifyObservers() // action
remarks = remarkshistory //expression
if(allowedriskvalue <= riskvalue) //child condition
do something //can be expression or action
else
do some other thing
else
do some thing
if(风险值