예제 #1
0
 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");
     }
 }
예제 #2
0
 public ContextMenuStripGroup this[string key]
 {
     get
     {
         if (!InnerHashtable.ContainsKey(key))
         {
             InnerHashtable[key] = new ContextMenuStripGroup(key);
         }
         return(InnerHashtable[key] as ContextMenuStripGroup);
     }
 }
예제 #3
0
 /// <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));
 }
예제 #4
0
 public bool ContainsKey(string key)
 {
     return(InnerHashtable.ContainsKey(key));
 }
예제 #5
0
 public bool Contains(ManagedObjectName objectName)
 {
     return(InnerHashtable.ContainsKey(objectName));
 }