您的位置:程序门 -> .net技术 -> c#



关于定制特性


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


关于定制特性[已结贴,结贴人:csdnquestion]
发表于:2007-01-22 11:18:14 楼主
有个类test,定义了一些定制特性,使用代码
attribute[]   attribs   =   attribute.getcustomattributes(typeof(test));
可以正确取得特性。
但是查看msdn,没有查找到
attribute.getcustomattributes   (type)   的重载,怎么会运行成功?
代码attribute[]   attribs   =   attribute.getcustomattributes(typeof(test));
调用的是哪个重载函数呢?
发表于:2007-01-25 08:45:541楼 得分:0
是问题写的不清楚吗?
发表于:2007-01-25 08:54:022楼 得分:20
public   abstract   class   type   :   memberinfo,   _type,   ireflect


public   static   attribute[]   getcustomattributes   (
memberinfo   element
)


快速检索

最新资讯
热门点击