コード例 #1
0
 public Boolean Contains(TKey key)
 {
     if (UniqueKeys)
     {
         return(DictionaryItems.ContainsKey(key));
     }
     else
     {
         return(ListItems.Count(i => i.Key.Equals(key)) > 0);
     }
 }
コード例 #2
0
 public static bool hasKey(string key)
 {
     EnsureCache();
     return(DictionaryItems.ContainsKey(key));
 }