I want to be able to use a set of variables that can stand in for mathematical operators. I am attempting to create a calculator as a learning exercise. I figure it would not be good to have the calculation occur every time a button is pressed, so how do I change the operators in a question without containing the calculations in an if statement?
Example
string plus = +;
string equals = =;
public void button_clicked(....)
{
.....
7 equals 4 plus 3;