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