Public string StringToBoll2 (string expression)
{
DataTable dt = new DataTable();
Returns (dt. Compute (expression, ""). ToString());
}
StringToBoll2 can get the result of the expression (a "true" or "false" string).
Just change it again. Conversion. ToBoolean(your string);