public XMLConfig GetConfig(string tag) { for (int i = 0; i < this.configList.Count; i++) { XMLConfig config = (XMLConfig)this.configList[i]; if (tag == config.GetName()) { return(config); } } return(null); }
public bool HasConfig(string tag) { for (int i = 0; i < this.configList.Count; i++) { XMLConfig conf = (XMLConfig)this.configList[i]; if (tag == conf.GetName()) { return(true); } } return(false); }
public XMLConfig[] GetConfigs(string tag) { List <XMLConfig> configList = new List <XMLConfig>(); for (int i = 0; i < this.configList.Count; i++) { XMLConfig config = (XMLConfig)this.configList[i]; if (tag == config.GetName()) { configList.Add(config); } } XMLConfig[] configs = new XMLConfig[configList.Count]; configs = configList.ToArray(); return(configs); }