Say we want to evaluate a boolean expression at runtime say True And True Or False. We can use
using System;
using System.Data;
namespace ConsoleApplication1
{
public class Program
{
public static void Main()
{
DataTable dt = new DataTable();
var result = dt.Compute("True And True Or False", "");
}
}
}