我希望能够打印对象属性,但当我点击 iList 的嵌套集合时遇到了障碍。
foreach (PropertyInformation p in properties)
{
//Ensure IList type, then perform recursive call
if (p.PropertyType.IsGenericType)
{
// recursive call to PrintListProperties<p.type?>((IList)p," ");
}
任何人都可以提供一些帮助吗?
干杯
K A