C#中string类型的“1+1”最后得到int类型的结果
C#中string类型的“1+1”最后得到int类型的结果,有什么好的方法?
用什么函数?
              
                  string
                  c#
              
------解决方案--------------------http://blog.csdn.net/yillc/article/details/6844931
------解决方案--------------------            double d = Convert.ToDouble(new DataTable().Compute("1+1", null));