Serializable, shortcut method for AssignValueConverter, which obtains method result of a property from a variable and assign to another variable.

IScriptCommand executeMethodCommand = 
  ScriptCommands.AssignValueConverter(ValueConverterType.ExecuteMethod, "{Converter}", 
    ScriptCommands.Reassign("{Variable1}", "{Converter}", "{Variable2}", false, 
	  ScriptCommands.PrintDebug("{Variable1} + 1 day -> {Variable2}")), "AddDays", 1);		

//equals

executeMethodCommand = ScriptCommands.AssignMethodResult("{Variable1}", "AddDays", new object[] { 1 }, "{Variable2}", 
  ScriptCommands.PrintDebug("{Variable1} + 1 day -> {Variable2}"));

Last edited Jul 29, 2014 at 10:10 AM by lycj, version 2

Comments

No comments yet.