C#, turn the DataTable to string based calculator
With C#, it’s pretty easy to do string-based math.
The following method, you can quickly perform simple calculator or mathematical operations.
(Source: My Gist)
var result = new System.Data.DataTable().Compute("12+4/2", null);
Console.Write(result);
More: Microsoft Docs