public bool Contains(object key) { foreach(PrologVariableDictionaryEntry e in _items) { if(e.Name == (string)key) { return true; } } return false; }