public void Contains(IDictionary dic) { foreach (DictionaryEntry de in dic) { bool b = dic.Contains(de.Key); } }