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); } }
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); } }