Exemplo n.º 1
0
 public TreeDictionary(IEqualityComparer <TKey> comparer)
 {
     _comparer = comparer ?? EqualityComparer <TKey> .Default;
     _treeSet  = new TreeSet <KeyValuePair <TKey, TValue> >(new KeyComparer(_comparer));
 }
Exemplo n.º 2
0
 public TreeDictionary(int branchingFactor, IEqualityComparer <TKey> comparer)
 {
     _comparer = comparer ?? EqualityComparer <TKey> .Default;
     _treeSet  = new TreeSet <KeyValuePair <TKey, TValue> >(branchingFactor, new KeyComparer(_comparer));
 }
 internal Enumerator(TreeSet<KeyValuePair<TKey, TValue>>.Enumerator enumerator, ReturnType returnType)
 {
     _returnType = returnType;
     _enumerator = enumerator;
 }