static void Main(string[] args) { Tree btree = new Tree(); btree.insertvalue(btree, 10); btree.insertvalue(btree, 15); btree.insertvalue(btree, 5); btree.insertvalue(btree, 4); btree.TraversePreOrder(btree.root); Console.WriteLine("Getting Sorted Value"); btree.getsortedlist(btree.root); }