public void DisplayTree <TKey, TNode>(BinTree <TKey, TNode> tree) where TKey : IComparable where TNode : BinNode <TKey, TNode>, new() { var res = tree.Display(disp); Console.WriteLine(res); }