title: check If type is a list returns false
body: <p>I was trying to process a generic class with properties that are <code>List&lt;T&gt;</code>. However it does not work when checking the property using <code>IsAssignableFrom</code>.</p>
  
  <p>Code Snippet:</p>
  
  <pre><code>var type = model.GetType();
  
  var properties = type.GetProperties(BindingFlags.Public | BindingFlags.Instance);
  int colorIndex = 0;
  
  foreach (var property in properties)
  {
      if (typeof(List&lt;&gt;).IsAssignableFrom(property.PropertyType))
      {
          //codes here
  
      }
  }
  </code></pre>
  
  <p>Am I missing something here? Why is it not treating the property as List even it is a list?</p>