public object GetKey(object value) { foreach (DictionaryEntry entry in dict) if (entry.Value == value) return entry.Key; return null; }