public static BindingTargetInfo AddMethod(this BindingSourceTable targets, BuiltInMethod method, string methodName,
       int minParamCount = 0, int maxParamCount = 0, string parameterNames = null) {
   var callTarget = new BuiltInCallTarget(method, methodName, minParamCount, maxParamCount, parameterNames); 
   var targetInfo = new BuiltInCallableTargetInfo(callTarget);
   targets.Add(methodName, targetInfo);
   return targetInfo; 
 }
Example #2
0
        public static BindingTargetInfo AddMethod(this BindingSourceTable targets, BuiltInMethod method, string methodName,
                                                  int minParamCount = 0, int maxParamCount = 0, string parameterNames = null)
        {
            var callTarget = new BuiltInCallTarget(method, methodName, minParamCount, maxParamCount, parameterNames);
            var targetInfo = new BuiltInCallableTargetInfo(callTarget);

            targets.Add(methodName, targetInfo);
            return(targetInfo);
        }