title: parsing a string to an int C#
body: <p>I am working on math engine in C# for my teacher, and I don't know how to parse something like this <code>string needToBeCalculated = "1/2 + (2 + 3 /2 * (3+1))";</code>, To an int or long. I know that<code>long Calculated = long.Parse(needToBeCalculated );</code> this doesn't work. But is there a build in method or some kind of a design pattern that i must use ?</p>