private CommandBinding Bind(string commandName, string description) { if (commandName == "") { throw new ArgumentException("commandName cannot be blank."); } if (commandName.Contains(" ")) { throw new ArgumentException("commandName cannot contain a space."); } var binding = new CommandBinding(commandName.ToLower(), description); _boundCommands[commandName.ToLower()] = binding; return binding; }
public BoundCommandInfo(CommandBinding commandBinding) { _commandBinding = commandBinding; }