public IList <XmlIoCInfo> GetNames(string key) { if (!XmlIoCs.ContainsKey(key)) { return(null); } return(XmlIoCs[key]); }
public string GetName(string key, string name) { if (XmlIoCs.ContainsKey(key) && XmlIoCs[key] != null) { return((from temp in XmlIoCs[key] where temp.Type.Equals(name) select temp.MapTo).FirstOrDefault()); } return(null); }
public bool RemoveName(string key) { if (!XmlIoCs.ContainsKey(key)) { return(false); } XmlIoCs.Remove(key); return(true); }
public bool AddNames(string key, IList <XmlIoCInfo> infos) { if (XmlIoCs.ContainsKey(key)) { return(false); } XmlIoCs.Add(key, infos); return(true); }