Advertisement
yakovmonarh

TreeView

Nov 20th, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.20 KB | None | 0 0
  1. private TreeNode Recurs(int deptch)
  2.         {
  3.             TreeNode node = new TreeNode(array[deptch]);
  4.             node.Nodes.Add(Recurs(deptch--));
  5.             if(deptch < 0)
  6.             {
  7.                 return node;
  8.             }
  9.            
  10.             return node;
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement