public object ComputeExpression(string expression)
{
var result = new DataTable().Compute(expression, null);
return result;
} MessageBox.Show(ComputeExpression("(1363 + 123)*345 /123").ToString());
原文地址:http://www.cnblogs.com/xe2011/p/3773762.html