public string this[T code] { get { return(InnerHashtable.ContainsKey(code) ? InnerHashtable[code].ToString() : "Không tìm thấy thông tin ứng với mã lỗi"); } }
public ContextMenuStripGroup this[string key] { get { if (!InnerHashtable.ContainsKey(key)) { InnerHashtable[key] = new ContextMenuStripGroup(key); } return(InnerHashtable[key] as ContextMenuStripGroup); } }
/// <summary> /// Check if an object exists with the specified key /// </summary> /// <param name="name">The key to teh object</param> /// <returns>True if teh object already exist otherwise false</returns> public bool Exists(Name name) { return(InnerHashtable.ContainsKey(name)); }
public bool ContainsKey(string key) { return(InnerHashtable.ContainsKey(key)); }
public bool Contains(ManagedObjectName objectName) { return(InnerHashtable.ContainsKey(objectName)); }