How do I determine what class the method I'm looking at belongs to?
public class class1 {
...
}
public class class2 {
... // many lines of code!
public static bool TheMethodIWantToUse() {
...
}
... // many more lines of code
}
public class class3 {
...
}
Say that I have this file open in VisualStudio, and I've finally found TheMethodIWantToUse() by CTRL+F.
Is there any way that I can quickly find the name of the class that this is in -- class2 -- so I can actually use the method? (Assume there are so many lines that scrolling would be very tedious).
For example, if I can put my cursor just outside of the method and ask to go to the beginning of the current block, that would work well, though I don't know if there's a way to do that.
I am using VS 2015, and am working on a codebase that I did not myself write. I also have access to the ReSharper extension, and am willing to install additional ones that do not cost money.