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