首页 > 代码库 > C# 算速表达式

C# 算速表达式

 
        public object ComputeExpression(string expression)
        {
            var result = new DataTable().Compute(expressionnull);
            return result;
        }

  MessageBox.Show(ComputeExpression("(1363 + 123)*345 /123").ToString());

http://stackoverflow.com/questions/2859111/c-sharp-math-calculator



来自为知笔记(Wiz)