示例#1
0
        public DelegateMethodCall(Delegate func, params Object[] parameters)
        {
            if (func.Method.GetParameters().Length < parameters.Length)
            {
                throw new ArgumentException("Too many parameters specified for delegate", "func");
            }

            Func = func;
            CollParam.Add(new OrderdParameterSetter(parameters));
        }
示例#2
0
 public DelegateMethodCall(Delegate func, IParameterSetter paramSetter)
 {
     Func = func;
     CollParam.Add(paramSetter);
 }
示例#3
0
 public DynamicMethodCall(Object obj, MethodInfo methodInfo, IParameterSetter paramSetter)
 {
     _Obj       = obj;
     MethodInfo = methodInfo;
     CollParam.Add(paramSetter);
 }