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); } }
public IEnumerable <KeyValuePair <string, EquatableObject> > GetPairs() { return(RedBlackNode <EquatableObject> .GetPairs(_root)); }
public IEnumerable <KeyValuePair <string, DType> > GetPairs() { return(RedBlackNode <DType> .GetPairs(_root)); }