public virtual void AddCommandProcessor(TextCommandProcessor commandProcessor)
		{
			IList list;

			foreach (string s in commandProcessor.GetNames())
			{
				list = (IList)commandProcessors[s];

				if (list == null)
				{
					list = new ArrayList(4);

					commandProcessors[s] = list;
				}

				list.Add(commandProcessor);
			}
		}
Пример #2
0
        public virtual void AddCommandProcessor(TextCommandProcessor commandProcessor)
        {
            IList list;

            foreach (string s in commandProcessor.GetNames())
            {
                list = (IList)commandProcessors[s];

                if (list == null)
                {
                    list = new ArrayList(4);

                    commandProcessors[s] = list;
                }

                list.Add(commandProcessor);
            }
        }