title: C# - Reflection using Generics: Problem with Nested collections of ILists
body: <p>I would like to be able to print object properties, and I've hit a snag when I hit nested collections of the iLists.</p>
  
  <pre><code>foreach (PropertyInformation p in properties)
              {
                  //Ensure IList type, then perform recursive call
                  if (p.PropertyType.IsGenericType)
                  {
                           //  recursive call to  PrintListProperties&lt;p.type?&gt;((IList)p,"       ");
                  }
  </code></pre>
  
  <p>Can anyone please offer some help?</p>
  
  <p>Cheers</p>
  
  <p>KA</p>