List<string> FieldListAll = "D1,D2,Tn1,Tn2,A,B,C".ToList();
List<string> FieldList = new List<string>();
foreach (string Field in FieldListAll)
{
double val = (double)this.GetType().GetField("d" + Field).GetValue(this);

if (val>0)
{
FieldList.Add(Field);
}
}

相关文章:

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