title: Nested classes and recursion
body: <p>Say i have these two classes</p>
  
  <pre><code>public class Container
  {
      public string name { get; set; }
      public Inner Inner { get; set; }
  }
  
  public class Inner
  {
      public string text { get; set; }
      public Inner2 Innert2 { get; set; }
  }
  
  public class Inner2 {}
  </code></pre>
  
  <p>How would i go, given an instance of the <code>Container</code> class find all nested class instances. Only really concerned about the classes not the strings etc.</p>
  
  <p>Needs to be generic so that if Inner had a class it would still work. Also if there is a <code>List&lt;&gt;</code> or <code>IEnumerable</code> of a class it needs to find them too.</p>
  
  <p>Cheers.</p>