public string NM_SN01 = string.Empty;//设定公共变量
NM_SN01 =“barcode1”;
this.GetType().GetField(“NM_SN” + “01”).GetValue(this).ToString();
C#将字符串转化为变量
最新推荐文章于 2024-04-26 06:02:49 发布
public string NM_SN01 = string.Empty;//设定公共变量
NM_SN01 =“barcode1”;
this.GetType().GetField(“NM_SN” + “01”).GetValue(this).ToString();