private object lockObj = new object(); private Dictionary dict = new Dictionary(); public string GetOrAddFromDict(int key) {
Sadly, no.
I carry around a custom HashMap that has this property.
The defect is in the rehash() function.