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

            internal Enumerator([NotNull] DictionaryBase <TKey, TValue> dictionary, int getEnumeratorRetType)
            {
                _dictionary           = dictionary;
                _version              = dictionary._version;
                _index                = 0;
                _getEnumeratorRetType = getEnumeratorRetType;
                _current              = new KeyValuePair <TKey, TValue>();
            }
示例#3
0
 public ValueCollection([NotNull] DictionaryBase <TKey, TValue> dictionary)
 {
     _dictionary = dictionary;
 }