Attribute不知道用什么方式在Assembly里面存储,居然对Attribute参数有限制.
我在自定义Attriubte中增加Color Property,编译通过。但是使用的时候报错:

“属性参数必须是常数表达式、typeof 表达式或数组创建表达式”

看来Attribute的应用要大打折扣了。
posted on 2004-05-25 19:35  steeven  阅读(1059)  评论(5编辑  收藏  举报