Пример #1
0
 public Enumerator(JaggedDictionary <TKey, TValue> dictionary, Extractor extractor)
 {
     _depth          = dictionary.Depth;
     _enumerators    = new IDictionaryEnumerator[_depth];
     _enumerators[0] = dictionary._root.GetEnumerator();
     _extractor      = extractor;
 }
        public JaggedDictionaryDebugView(JaggedDictionary <TKey, TValue> dictionary)
        {
            if (dictionary == null)
            {
                ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary);
            }

            this.dict = dictionary;
        }
Пример #3
0
 internal KeyCollection(JaggedDictionary <TKey, TValue> dictionary)
     : base(dictionary, enums => JaggedIndex.Create <TKey>(enums.Select(e => (TKey)e.Key).ToArray()))
 {
 }
Пример #4
0
 internal AbstractCollection(JaggedDictionary <TKey, TValue> dictionary, Enumerator <T> .Extractor extractor)
 {
     this._dictionary = dictionary;
     this._extractor  = extractor;
 }
Пример #5
0
 internal ValueCollection(JaggedDictionary <TKey, TValue> dictionary)
     : base(dictionary, enums => (TValue)enums.Last().Value)
 {
 }