Пример #1
0
 /// <summary>
 /// Returns argument at given index with a given Command Argument as a command. (For backward compatibility.)
 /// </summary>
 /// <param name="index">Which index to use.</param>
 /// <param name="ca">A Command Argument to use.</param>
 /// <returns>A command where the argument at the given index is the command and the given ca make the Arguments.</returns>
 public string AsCommand(int index, CommandArgument ca)
 {
     return GetArgument(index).AsCommand(ca);
 }
Пример #2
0
 /// <summary>
 /// Looks up the token and creates a command for it using the given command argument.
 /// </summary>
 /// <param name="ca">What command argument to use.</param>
 /// <returns>The command.</returns>
 public string AsCommand(CommandArgument ca)
 {
     return ca.Lookup(m_token);
 }