/// <summary> /// Create a description of a method that should be invoked with the specified arguments. /// </summary> /// <param name="argumentDelegate">The method that should be invoked.</param> /// <param name="arguments">The arguments of the method invokation.</param> public CommandArgumentPair(GenericEventHandler genericEventHandler, params Object[] arguments) { // Initialize the object this.genericEventHandlerField = genericEventHandler; this.genericEventArgsField = new GenericEventArgs(arguments); }
/// <summary> /// Create a description of a method that should be invoked with the specified arguments. /// </summary> /// <param name="argumentDelegate">The method that should be invoked.</param> /// <param name="arguments">The arguments of the method invokation.</param> public CommandArgumentPair(GenericEventHandler genericEventHandler, GenericEventArgs genericEventArgs) { // Initialize the object this.genericEventHandlerField = genericEventHandler; this.genericEventArgsField = genericEventArgs; }