This blog is useful to all my friends who are working on the .Net Technology and wants to enhance their skills as well their problem solving ability.

Wednesday, June 17, 2015

c#.net mathematical expression string to calculation

c#.net mathematical expression string to calculation
If you want to evaluate a string expression use the below code snippet.
using System.Data;

DataTable dt = new DataTable();
var v = dt.Compute("3 * (2+4)","");