title: reflection on List and printing values
body: <p>I wrote a method that accepts a generic parameter and then it prints its properties. I use it to test my web service. It's working but I want to add some features that I don't know how to implement. I want to print values of lists, because now it just writes System.Collection.Generic.List1 which is expected.</p>
  
  <p>Here is my code so far, this is working for basic types (int, double etc.):</p>
  
  <pre><code>static void printReturnedProperties&lt;T&gt;(T Object)
  { 
     PropertyInfo[] propertyInfos = null;
     propertyInfos = Object.GetType().GetProperties();
  
     foreach (var item in propertyInfos)
        Console.WriteLine(item.Name + ": " + item.GetValue(Object).ToString());
  }
  </code></pre>