DataTable dt = new DataTable(); var Result= dt.Compute("1+2*3+2", "");//将运算字符串转换成表达式运算 NumberTxt.Text = Result.ToString();