refresh

导航

表达式计算(使用DataTable)

1 public static class Calculator
2     {
3         private static DataTable _table = new DataTable();
4 
5         public static object Compute(string expression)
6         {
7             return _table.Compute(expression, "");
8         }
9     }

posted on 2012-05-22 09:02  refresh  阅读(239)  评论(0编辑  收藏  举报