title: Get List if Properties of type ICollection from Generic Class
body: <p>I have an object that contains some ICollection type properties</p>
  
  <p>So basically the class looks like this:</p>
  
  <pre><code>Class Employee {
  
  public ICollection&lt;Address&gt; Addresses {get;set;}
  
  public ICollection&lt;Performance&gt; Performances {get; set;}
  
  }
  </code></pre>
  
  <p>The problem is get property names of type ICollection, inside of Generic class,  by using reflection.</p>
  
  <p>My Generic Class is</p>
  
  <pre><code>Class CRUD&lt;TEntity&gt;  {
  
  public object Get() {
   var properties = typeof(TEntity).GetProperties().Where(m=m.GetType() == typeof(ICollection ) ... 
  }
  </code></pre>
  
  <p>But it is not working.</p>
  
  <p>How can I get a property here?</p>