Call command
Inheritance: Yea.Reflection.Emit.BaseClasses.CommandBase
Beispiel #1
0
 /// <summary>
 ///     Calls a constructor
 /// </summary>
 /// <param name="objectCallingOn">Object to call the constructor on</param>
 /// <param name="methodCalling">Constructor to call</param>
 /// <param name="parameters">parameters to use</param>
 public virtual void Call(VariableBase objectCallingOn, ConstructorInfo methodCalling, object[] parameters)
 {
     SetCurrentMethod();
     var tempCommand = new Call(this, objectCallingOn, methodCalling, parameters);
     tempCommand.Setup();
     Commands.Add(tempCommand);
     ++ObjectCounter;
 }
Beispiel #2
0
 /// <summary>
 ///     Calls a method
 /// </summary>
 /// <param name="objectCallingOn">Object to call the method on</param>
 /// <param name="methodCalling">Method to call</param>
 /// <param name="parameters">parameters to use</param>
 /// <returns>The result of the method call</returns>
 public virtual VariableBase Call(VariableBase objectCallingOn, MethodInfo methodCalling, object[] parameters)
 {
     SetCurrentMethod();
     var tempCommand = new Call(this, objectCallingOn, methodCalling, parameters);
     tempCommand.Setup();
     Commands.Add(tempCommand);
     ++ObjectCounter;
     return tempCommand.Result;
 }