internal PythonDictionary(IDictionary dict) { _storage = new CommonDictionaryStorage(); lock (_storage) { foreach (DictionaryEntry de in dict) { _storage.AddNoLock(de.Key, de.Value); } } }
private void UncommonCopyTo(ref DictionaryStorage into) { for (int i = 0; i < _buckets.Length; i++) { Bucket curBucket = _buckets[i]; if (curBucket.Key != null && curBucket.Key != _removed) { into.AddNoLock(ref into, curBucket.Key, curBucket.Value); } } }
private void UncommonCopyTo(DictionaryStorage into) { for (int i = 0; i < _buckets.Length; i++) { Bucket curBucket = _buckets[i]; while (curBucket != null) { into.AddNoLock(curBucket.Key, curBucket.Value); curBucket = curBucket.Next; } } }