Esempio n. 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();
     Call TempCommand = new Call(this, ObjectCallingOn, MethodCalling, Parameters);
     TempCommand.Setup();
     Commands.Add(TempCommand);
     ++ObjectCounter;
 }
Esempio n. 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();
     Call TempCommand = new Call(this, ObjectCallingOn, MethodCalling, Parameters);
     TempCommand.Setup();
     Commands.Add(TempCommand);
     ++ObjectCounter;
     return TempCommand.Result;
 }