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

IScriptCommand getPropertyCommand = 
  ScriptCommands.AssignValueConverter(ValueConverterType.GetProperty, "{Converter}", 
    ScriptCommands.Reassign("{Variable1}", "{Converter}", "{Variable2}", false, 
	  ScriptCommands.PrintDebug("{Variable1} -> {Variable2}")), "DayOfWeek");

//equals

getPropertyCommand = ScriptCommands.AssignProperty("{Variable1}", "DayOfWeek", "{Variable2}", 
  ScriptCommands.PrintDebug("{Variable1} -> {Variable2}"));

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

Comments

No comments yet.