Exemplo n.º 1
0
 internal Enumerator([NotNull] KeyedDictionaryBase <TKey, TValue> dictionary)
 {
     _dictionary = dictionary;
     _version    = dictionary._version;
     _index      = 0;
     Current     = default(TKey);
 }
Exemplo n.º 2
0
            private int                                         _getEnumeratorRetType; // What should Enumerator.Current return?

            internal Enumerator([NotNull] KeyedDictionaryBase <TKey, TValue> dictionary, int getEnumeratorRetType)
            {
                _dictionary           = dictionary;
                _version              = dictionary._version;
                _index                = 0;
                _getEnumeratorRetType = getEnumeratorRetType;
                _current              = new KeyValuePair <TKey, TValue>();
            }
Exemplo n.º 3
0
 public ValueCollection([NotNull] KeyedDictionaryBase <TKey, TValue> dictionary)
 {
     _dictionary = dictionary;
 }