Exemplo n.º 1
0
                public Enumerator(SmallDictionary <K, V> dict)
                    : this()
                {
                    var root = dict._root;

                    if (root != null)
                    {
                        // left == right only if both are nulls
                        if (root.Left == root.Right)
                        {
                            _next = dict._root;
                        }
                        else
                        {
                            _stack = new Stack <AvlNode>(dict.HeightApprox());
                            _stack.Push(dict._root);
                        }
                    }
                }
Exemplo n.º 2
0
 public ValueCollection(SmallDictionary <K, V> dict)
 {
     _dict = dict;
 }
Exemplo n.º 3
0
 public KeyCollection(SmallDictionary <K, V> dict)
 {
     _dict = dict;
 }