title: List with in a List PropertyInfo get properties iteration
body: <p>I had a list as <code>ProductSpec {id, Name}</code> and another list as <code>Product {productspec, id, Name}</code>.
  When I try access the properties of Product into </p>
  
  <pre><code>IList&lt;PropertyInfo&gt; properties = typeof(Product).GetProperties().ToList();
  </code></pre>
  
  <p>I am retreving my id and name as a property which is fine but when I try to reiterate a productspec as</p>
  
  <pre><code>foreach(var property in properties)
  {
      IList&lt;PropertyInfo&gt; properties = property.propertytype.getproperties();
      // I am not getting the productspec columns 
      //instead I am getting (capacity,count ) as my properties..
  }
  </code></pre>
  
  <p>So how do I reiterate a list from a list to get the list properties</p>