This question shows research effort; it is useful and clear
2
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我想检索(使用 NDepend)在方法上声明的给定类型的所有属性的列表。就像是
warnif count > 0 from m in JustMyCode.Methods where
m.HasAttribute("MyNamespace.MyAttribute")
select new { m, m.Attributes("MyNamespace.MyAttribute") }