例如 string str = spp; string spp = very good; 怎樣搞 str 而得到 very good 這個值? 答案 public partial class Form : Form { string str = spp; public string spp = very good; public Form() { InitializeComponent() MessageBoxShow(thisGetType()GetField(str)GetValue(this)ToString()) } }
From:http://tw.wingwit.com/Article/program/net/201311/11553.html