private void AddHelpImpl(IDictionary<string, string> dictionary, ICommandBase command) { Trace.Assert(command != null); Trace.Assert(dictionary != null); Trace.Assert(!dictionary.ContainsKey(command.GetName())); dictionary.Add(command.GetName(), GetHelpRowForCommand(command)); }
private void AddHelpImpl(IDictionary <string, string> dictionary, ICommandBase command) { Trace.Assert(command != null); Trace.Assert(dictionary != null); Trace.Assert(!dictionary.ContainsKey(command.GetName())); dictionary.Add(command.GetName(), GetHelpRowForCommand(command)); }
private string GetCommandName(ICommandBase command) { Trace.Assert(command != null); if (command is IConsoleCommand) { return('.' + command.GetName()); } IInlineCommand icommand = (IInlineCommand)command; return(icommand.GetNameSpace() + '.' + icommand.GetName()); }
private string GetCommandName(ICommandBase command) { Trace.Assert(command != null); if (command is IConsoleCommand) { return '.' + command.GetName(); } IInlineCommand icommand = (IInlineCommand) command; return icommand.GetNameSpace() + '.' + icommand.GetName(); }