Пример #1
0
        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));
        }
Пример #2
0
        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));
        }
Пример #3
0
        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());
        }
Пример #4
0
        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();
        }