mercredi 12 juillet 2017

How to execute simple code from string variable in C#

Which are different methods where i can execute or break the string which actually contains a C# condition

The string value has a left operand,operator and right operand

how do i break it efficiently to store the result

var condition = "False == True"; 
var condition = "6 == 8";

I am looking for a generic approach





Aucun commentaire:

Enregistrer un commentaire