title: C# - Get the Model properties inside a List<Model> and SetValue with System.Reflection
body: <p>I am doing a POC for a project that I am developing and at the moment I'm in kind of a hard spot.
  So, I am receiving a param T which normally is a Model and then I have to check its properties to see which type the props are and then populate them.
  To achieve this I am using <code>System.Reflection</code> which does the job wonderfully!
  So far so good, It's working fine.</p>
  <p>The problem is when the property in the model is a List</p>
  <p>This is the example model that I have:</p>
  <pre><code>public List&lt;TestModel2&gt; TestList1 { get; set; }
  
  public string test1 { get; set; }
  
  public string test2 { get; set; }
  
  public string test3 { get; set; }
  </code></pre>
  <p>So, the strings are totally fine, I can receive the Model, see their type and populate their value, the real problem arises when I get <code>TestList1</code> which I can't seem to get the <code>TestModel2</code> props and types.</p>
  <p>This is a library that I am developing for a project, that's why the param type for the model is T by the way, it's because you can pass different models in which I will populate.</p>
  <p>How can I access the Model inside the <code>List&lt;TestModel2&gt;</code> and check its properties and types with <code>System.Reflection</code>?</p>
  <p>Can you guys give me a hint?</p>