title: Get all values of List with its nested list properties
body: <p>This morning i came uppon which seemed a simple  problem to solve. 
  I wanted to write all values of a list into my console. 
  In this case, the List contains List Members. I've been searching for a solution for some time now but I couldn't find one.  </p>
  
  <p>I've made it so far.</p>
  
  <pre><code>tl.ForEach(tradelane =&gt;
          {
              row = "";
  
              foreach(PropertyInfo pi in typeof(coTradeLane).GetProperties())
              {
                  Type T = pi.PropertyType;
  
                  if (T.IsGenericType &amp;&amp; T.GetGenericTypeDefinition() == typeof(List&lt;&gt;))
                  {
                      foreach(PropertyInfo piList in tradelane.GetType().GetProperties())
                      {
  
                              // Select the nested list and loop through each member..
  
                      }
                      continue;
                  }
  
                  var val = pi.GetValue(tradelane);
                  if (val != null) row += val.ToString() + " \t ";
                  else row += " \t \t ";
              }
              Console.WriteLine(row);
          });
  </code></pre>