private void InitList(TreeElement tree) { if (tree.GetLeft() != null) InitList(tree.GetLeft()); list.Add(tree.GetValue()); if (tree.GetRight() != null) InitList(tree.GetRight()); }
private void InitList(TreeElement tree) { if (tree.GetLeft() != null) InitList(tree.GetLeft()); list.Add(tree.GetValue()); if (tree.GetRight() != null) InitList(tree.GetRight()); }