List<object> list = new List<object>(); list.Add(new { test1=1, test2=2,test3=3}); foreach (var item in list) {   PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties(item);   PropertyDescriptor item1 = pdc.Find("test1", true);   var x = item1 .GetValue(item); }

 

相关文章:

  • 2022-03-03
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-01-18
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案