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)); }
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; } }