0

I have a string like this

string s = " IF(condition){ return true; } else { return false} ";

Now I want to execute this string and want result according to the condition like..

If condition is true then return true otherwise false.

Condition would be like (expression == 3) or (expression == "3") or (expression == '3') etc.

And one more thing I am getting this string from html parsing from browser that means i have to execute this like a string i have no other option..

How can i do this in c#

Uwais
  • 27
  • 1
  • 5

0 Answers0