There isn't such a thing in .net itself, but if you have just primary operations you can parse input string and find related values, for this you can use shunting yard algorithm or reverse polish notation, but also you can use NCalc for more complicated scenarios.