Beispiel #1
0
        internal StaticActionMethod(MethodInfo methodInfo)
            : base(methodInfo)
        {
            _invokeLooseExpression = new Lazy <Expression <Action <object[]> > >(() => ExpressionFactory.CreateNonGenericStaticMethodActionExpression(methodInfo));
            _invokeLoose           = new Lazy <Action <object[]> >(() => _invokeLooseExpression.Value.Compile());

            _invokeExpression = new Lazy <Expression <Action> >(() => ExpressionFactory.CreateStaticMethodActionExpression(methodInfo));
            _invoke           = new Lazy <Action>(() => _invokeExpression.Value.Compile());
        }