我已经定义了一个自定义属性并将其添加到几个类中.知道我正在使用反射来捕获装配中的所有类型.我想只过滤掉定义了此属性的类型.
我已经看到Attributes了Type对象的属性,但它只返回特定枚举中包含的值.
Attributes
如何检索定义了自定义属性的类型?
.net c# reflection attributes
.net ×1
attributes ×1
c# ×1
reflection ×1