public static void Main()
var fn = Generate(DateTime.Now.TimeOfDay.Seconds);
static Func<string> Generate(int i)
Console.WriteLine("Generating function");
var emitter = Emit<Func<string>>.NewDynamicMethod("IsOddOrEven");
emitter.LoadConstant("It's even");
emitter.LoadConstant("It's odd");
return emitter.CreateDelegate();