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)); }
public DelegateMethodCall(Delegate func, IParameterSetter paramSetter) { Func = func; CollParam.Add(paramSetter); }
public DynamicMethodCall(Object obj, MethodInfo methodInfo, IParameterSetter paramSetter) { _Obj = obj; MethodInfo = methodInfo; CollParam.Add(paramSetter); }