Beispiel #1
0
        public static MethodObject Parser(string xPath)
        {
            var content = xPath.Split('(');

            var methodName = content[0];

            object[] parameters = MethodRuleFactory.ToParamters(content[1]);

            return(new MethodObject(methodName, parameters));
        }
Beispiel #2
0
        private void CheckInvokability()
        {
            var rules = MethodRuleFactory.GetValueTypeArrayRules(Name);

            foreach (var rule in rules)
            {
                Invokable = rule.Match();
                if (Invokable)
                {
                    //ReturnType = rule.ReturnType;
                    break;
                }
            }
        }
Beispiel #3
0
 public MethodResult ExecuteMethod(DynamicMethod method, string parameterString)
 {
     object[] parameters = MethodRuleFactory.ToParamters(parameterString);
     return(new MethodResult(method, parameterString, ObjectUnderAnalyzsis.Invoke(method.MethodName, parameters)));
 }