示例#1
0
 internal PythonDictionary(IDictionary dict)
 {
     _storage = new CommonDictionaryStorage();
     lock (_storage) {
         foreach (DictionaryEntry de in dict)
         {
             _storage.AddNoLock(de.Key, de.Value);
         }
     }
 }
示例#2
0
 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);
         }
     }
 }
示例#3
0
        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;
                }
            }
        }
        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;
                }
            }
        }
 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);
         }
     }
 }