예제 #1
0
 public Enumerator(LockedDictionary <TKey, TValue> dictionary)
 {
     _enumerator = dictionary.Dictionary.Values.GetEnumerator();
     _lock       = dictionary.Lock;
     _lock.AcquireShared();
 }
예제 #2
0
 public Enumerator(LockedDictionary <TKey, TValue> dictionary)
 {
     _dictionary = dictionary;
     _enumerator = dictionary.Dictionary.GetEnumerator();
     _dictionary.Lock.AcquireShared();
 }
예제 #3
0
 public ValueCollection(LockedDictionary <TKey, TValue> dictionary)
 {
     _lockedDictionary = dictionary;
 }
예제 #4
0
 public Reader(LockedDictionary <TKey, TValue> dictionary)
 {
     _dictionary = dictionary;
 }