I posted a little while ago about how to perform basic mathematics on user-entered formulae and found that I can use System.Reflection to compile them and then execute the compiled code.

It turns out that the Web server I will be hosting my project does not allow System.Reflection (Access Denied). Which is good idea, really.

But it leaves me back to my original question...

How can I have a box (say a TextBox) where a user can enter a basic mathematical formula, like for example:

(6 + 5 * 2) * 2

And then feed that in to my program and it spits out the answer (32).

I had hoped at one point there was a Math.Eval function. There isn't.

So I am toying with the possibility of writing functions to handle all the math but every time I start on that, I realize three things:

1) It is a lot of work
2) It is a lot of work
3) It will require a different data structure than a simple array list and I have yet to find an appropriate structure.

So, I am placing the problem out on the public domain for responses/debate and the offchance that someone can just say "Oh yeah, just do X Y Z" and it will fix my issue.