会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Cad人生⎛⎝≥⏝⏝≤⎠⎞
每天一小步!疯狂青蛙
edata的博客cad.Arx
惊惊的博客cad.Net
首页
联系
订阅
管理
2013年8月18日
C#里面中将字符串转为变量名
摘要: public partial class Form1 : Form { string str = "spp"; public string spp = "very good"; public Form1() { InitializeComponent(); MessageBox.Show(this.GetType().GetField(str).GetValue(this).ToString()); } }
阅读全文
posted @ 2013-08-18 15:49 Cad人生
阅读(1642)
评论(0)
推荐(0)
编辑
公告