public object CreateExpressionInfo_and_FastCompile()
        {
            //Expression<Func<Action<string>>> expr = () => a => s.SetValue(a);

            var aParam = LE.Parameter(typeof(string), "a");
            var expr   = LE.Lambda(LE.Lambda(LE.Call(LE.Constant(_s), _setValueMethod, aParam), aParam));

            return(LEC.TryCompile <Func <Action <string> > >(expr));
        }
Beispiel #2
0
        public object CreateExpressionInfo_and_FastCompile()
        {
            var expr = LE.Lambda(LE.New(_xCtor, LE.New(_aCtor), LE.New(_bCtor)));

            return(LEC.TryCompile <Func <object> >(expr));
        }