this.GetType().GetField("portName" + i.ToString()).GetValue(this).ToString()
C# 获取字符串对应变量名
最新推荐文章于 2022-11-17 13:20:51 发布
this.GetType().GetField("portName" + i.ToString()).GetValue(this).ToString()