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:

Navigating to the library code

As you can see, in code decompiled ...

Get ReSharper Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.