Book Image

ReSharper Essentials

By : Lukasz Gasior
Book Image

ReSharper Essentials

By: Lukasz Gasior

Overview of this book

Table of Contents (18 chapters)
ReSharper Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Navigating to the library code


So far we have analyzed references between code only inside your own projects. How about analyzing the code of external libraries even if you do not have their source code?

Move your cursor to any method from the external library and press Alt + ` (Navigate to). From the displayed list, select the Sources from Symbol Files option. This option will try to display the code of the selected method based on debug information files (PDB).

If you do not have a PDB file, you can select the Decompiled Sources option.

The following screenshot presents the decompiled Asserts.cs file from NUnit:

As you can see, in code decompiled this way, you can use all the features described in this chapter.

Note

By default, ReSharper will not decompile methods and will only display the method declaration. To enable decompiling methods, you need to navigate to RESHARPER | Options from the Visual Studio toolbar and then navigate to Tools | External Sources from the ReSharper Options window...