title: Handling common recursive functions
body: <p>I've noticed that in my project, we frequently are writing recursive functions.</p>
  
  <p>My question is: is there any way to create the recursive function as generic function for each hierarchy structure that is using the recursive iteration?</p>
  
  <p>Maybe I can use a delegate that gets the root and the end flag of the recursion?</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks.</p>