Is there a way to find all fields of a certain type?

I'd like to find all fields exposing a certain type, but I don't find the option in "find usages advanced". I need this for refactoring, to find all data that might be serialized.

1 comment
Comment actions Permalink

Have a look at Resharper -> Find -> Search with pattern.

Something like

$type$ $var$

Where you put appropriate restrictions on the $type$ identifier should work.

Also consider auto properties

$type$ $var$ {get;set;}

I just found "Search with pattern" - it's very powerful!


Please sign in to leave a comment.