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; }
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; }