using NCalc;
using System;
public class Program
{
struct Wrapper {
short x;
}
public static void Main(string[] args)
var expression = "! (in([X],3))";
var ex = new Expression(expression);
var fun = ex.ToLambda<Wrapper,bool>();