Exemplo n.º 1
0
            public static void Main()
            {
                var c = new RedBlackNode <int>
                {
                    Key   = "1",
                    Value = 1,
                    Left  = new RedBlackNode <int>
                    {
                        Key   = "11",
                        Value = 11
                    },
                    Right = new RedBlackNode <int>
                    {
                        Key   = "12",
                        Value = 12
                    }
                };

                foreach (var pair in RedBlackNode <int> .GetPairs(c))
                {
                    System.Console.WriteLine(pair.Key + " - " + pair.Value);
                }
            }
Exemplo n.º 2
0
 public IEnumerable <KeyValuePair <string, EquatableObject> > GetPairs()
 {
     return(RedBlackNode <EquatableObject> .GetPairs(_root));
 }
Exemplo n.º 3
0
 public IEnumerable <KeyValuePair <string, DType> > GetPairs()
 {
     return(RedBlackNode <DType> .GetPairs(_root));
 }