コード例 #1
0
        public static IFunction Create(IInlineFunction info)
        {
            var errors = new StringInlineFunctionCreateMethodErrorHandler();

            MethodInfo methodInfo = InlineFunctionHelper.Create(info, null, errors);

            if (methodInfo == null)
            {
                return(new NotLoadedInlineFunction(info, errors));
            }

            return(new InlineFunction(info, methodInfo));
        }
コード例 #2
0
        private void Initialize()
        {
            var errors = new StringInlineFunctionCreateMethodErrorHandler();

            MethodInfo methodInfo = InlineFunctionHelper.Create(_function, null, errors);

            if (methodInfo == null)
            {
                _notLoadedInlineFunction = new NotLoadedInlineFunction(_function, errors);
            }
            else
            {
                MethodInfo = methodInfo;
            }
        }