WinForm 中通过反射怎样才可以得到窗体界面中的某一控件的属性值?解决思路

WinForm 中通过反射怎样才可以得到窗体界面中的某一控件的属性值?问题一WinForm中通过反射怎样才可以得到

WinForm 中通过反射怎样才可以得到窗体界面中的某一控件的属性值?
问题一
        WinForm   中通过反射怎样才可以得到窗体界面中的某一控件的属性值?

问题二
        自定义特性(AttributeUsage)可以传递   复杂对象吗?如   DataSet   等

[解决办法]
你试着做就是了,比如:
Type type = typeof(Button);
PropertyInfo info = type.GetProperty( "Name ");
object value = info.GetValue(this.button1, null);

[解决办法]
我顶,同志们加把劲哎
[解决办法]
帮你顶,顺便学习
[解决办法]
反射能这样反么?学习