如何遍历属性

2024-12-27 11:55:09
推荐回答(1个)
回答1:

WriteLine(..;Name:{0} Value:{1}.Name, pStudent s=new..Reflection.PropertyInfo p in s.GetType().GetProperties())
{
Console;, p
foreach (System