How to start a solution wide

I have been looking at the latest demo projects included with the Resharper beta2. I cannot seem to find a starting point to try to do a solution wide search. I would like to ideally to select a class - and try to find any of it's public members that are not used at solution scope. I just cant seem to find the way to enter the search process.

Any guidance would be appreciated.
Chris

0
2 comments

Yeah It looks like one has to have IDeclaredElement to proceed with Finder
class.
How does one search for a string directly.
Irfan

I have been looking at the latest demo projects included with the
Resharper beta2. I cannot seem to find a starting point to try to do a
solution wide search. I would like to ideally to select a class - and
try to find any of it's public members that are not used at solution
scope. I just cant seem to find the way to enter the search process.

Any guidance would be appreciated.
Chris



0

Something like this pseudo-code would be ideal :)

foreach Solution s in ...
foreach Project p in s.Projects
foreach File f in p.Files
foreach Member m in f.Members
if m is not private
{
Usages[] usages = m.FindUsages( SearchScope.Solution )
if usages.Count < 1
unusedMembers.Add( usage )
}

0

Please sign in to leave a comment.