摘要:
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 @ 2012-05-21 16:12
LuckJason
阅读(457)
评论(0)
推荐(0)
摘要:
class 1: public static class 任意类名1 2: { 3: public static string 任意方法名1(this plugins,....) 4: { 5: return "只要命名空间有引用, 的类型能匹配到,这个扩展就可用,真方便"; 6: } 7: }比如 1: 1: public static class AnyName 2: 2: { 3: 3: public static string GetMyName1(this string thisval)... 阅读全文
posted @ 2012-05-21 15:45
LuckJason
阅读(280)
评论(0)
推荐(0)

浙公网安备 33010602011771号