Possible Duplicate:
C# dynamic operator
I don't know if this is possible but let me ask:
For example I generate a simple math operation from a list
such as
List lstMat={=,+,-}
Then I generate a random value between 0-2 and select that operator from that list
such as
int ir1=1;
int ir2=2;
int irNew= ir1 lstMat[1] ir2 ;
//irNew would be 3
Is this possible?