程晓晖

博客园 首页 新随笔 联系 订阅 管理

2011年3月10日 #

摘要: 我们知道System.ComponentModel命名空间下有个名为DescriptionAttribute的类用于指定属性或事件的说明,我所调用的枚举值描述信息就是DescriptionAttribute类的Description属性值。 首先定义一个枚举/**////<summary>///测试用的枚举///</summary>publicenumArticleTypeList{[DescriptionAttribute("中国软件开发网络")]csdn,msdn,[DescriptionAttribute("博客园")]cn 阅读全文
posted @ 2011-03-10 18:24 fumen 阅读(4627) 评论(0) 推荐(0) 编辑