参考:
Attribute在.net编程中的应用(一) http://dudu.cnblogs.com/articles/4450.html
Attribute在.net编程中的应用(二) http://dudu.cnblogs.com/articles/4450.html
1)Attribute是编译时实例化的,Property是运行时实例化的
2)Attribute是一个类,对元素附加信息,并在运行时通过反射获取
参考:
Attribute在.net编程中的应用(一) http://dudu.cnblogs.com/articles/4450.html
Attribute在.net编程中的应用(二) http://dudu.cnblogs.com/articles/4450.html
1)Attribute是编译时实例化的,Property是运行时实例化的
2)Attribute是一个类,对元素附加信息,并在运行时通过反射获取