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");
     }
 }
Exemple #2
0
 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));
 }
Exemple #4
0
 public bool ContainsKey(string key)
 {
     return(InnerHashtable.ContainsKey(key));
 }
Exemple #5
0
 public bool Contains(ManagedObjectName objectName)
 {
     return(InnerHashtable.ContainsKey(objectName));
 }