title: Reflection a properties of type of generic list
body: <p>i have a class like below</p>
  
  <pre><code>public class Foo&lt;T&gt;
  {
    public List&lt;T&gt; Items{ get; set; }
  }
  </code></pre>
  
  <p>and </p>
  
  <p>i have a instance that above class,</p>
  
  <pre><code>Foo&lt;Bar&gt; bars = GetBars();
  </code></pre>
  
  <p>how i can get properties of Bar using reflection?</p>
  
  <p>i try this</p>
  
  <pre><code>PropertyInfo[] properties = bars.Items.First().GetType().GetProperties();
  </code></pre>
  
  <p>but i think,its not good way,is there any better way do this?</p>