Пример #1
0
 public ValueCollection(LightDictionary <TKey, TValue> dictionary)
 {
     if (dictionary == null)
     {
         ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary);
     }
     this.dictionary = dictionary;
 }
Пример #2
0
 internal Enumerator(LightDictionary <TKey, TValue> dictionary)
 {
     this.dictionary = dictionary;
     version         = dictionary.version;
     index           = 0;
     absoluteIndex   = 0;
     currentValue    = default(TValue);
 }
 internal Enumerator(LightDictionary <TKey, TValue> dictionary, int getEnumeratorRetType)
 {
     this.dictionary           = dictionary;
     version                   = dictionary.version;
     index                     = 0;
     absoluteIndex             = 0;
     this.getEnumeratorRetType = getEnumeratorRetType;
     current                   = new KeyValuePair <TKey, TValue>();
 }