title: How to loop recursive data type
body: <p>I reading hierarchical data into a recursive data structure.</p>
  
  <pre><code>public class Items
  {
      public string Name { get; set; }
      public List&lt;Items&gt; Children { get; set; }
  }
  </code></pre>
  
  <p>So its similar to a tree. My problem is, I have no idea how I can loop over all elements or find a inner element with a specific Name. Since it can be very complex/deep I can not really work with nested loops since I don't know how deep it will get. </p>
  
  <p>How can I have a loop over all elements in such a structure?</p>