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; }
internal KeyCollection(JaggedDictionary <TKey, TValue> dictionary) : base(dictionary, enums => JaggedIndex.Create <TKey>(enums.Select(e => (TKey)e.Key).ToArray())) { }
internal AbstractCollection(JaggedDictionary <TKey, TValue> dictionary, Enumerator <T> .Extractor extractor) { this._dictionary = dictionary; this._extractor = extractor; }
internal ValueCollection(JaggedDictionary <TKey, TValue> dictionary) : base(dictionary, enums => (TValue)enums.Last().Value) { }