searching attributes by usage/target

Hello,

is there a way to search the project/solution for special attribute
targets?

Say I want to locate all attributes which have been applied
to methods (and ignore all usages where the attribute has been applied to a
class).

--
/\/\arkus.

2 comments

Hello Markus,

Sure you can. Place caret on ObfuscationAttribute or its usage, use Find
Usages, then hit filter button on find results toolbar and ensure only []
item is selected.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


MS> Hello,
MS>
MS> is there a way to search the project/solution for special attribute
MS> targets?
MS>
MS> Say I want to locate all attributes which have been
MS> applied to methods (and ignore all usages where the attribute has
MS> been applied to a class).
MS>


0

Ilya,

Sure you can. Place caret on ObfuscationAttribute or its usage, use Find
Usages, then hit filter button on find results toolbar and ensure only []
item is selected.


While this for sure is better than nothing:
I still have to group by "Type and Member" and scroll through the entire
list in order to spot a method-icon (purple box) where most of the
occurrences target an entire class so they are very seldom.

--
/\/\arkus.

0

Please sign in to leave a comment.