This section is about how to find quality information about programming on the Web.
The definitive resource for getting help about C# and .NET is the Microsoft Developer Network (MSDN).
Visual Studio is integrated with MSDN, so if you press F1 inside a C# keyword or type, then it will open your browser and take you to the official documentation.
Almost all the reference URLs at the end of chapters in this book will take you to MSDN.
Another useful keystroke is F12. This will show what the original source code looks like. It uses a similar technique as IL DASM to reverse engineer the source code from Microsoft assemblies.
Enter the following code, click inside int
, and then press F12 (or right-click and choose Go To Definition):
int x;
In the new code window that appears, you can see that int
is in the mscorlib.dll
assembly, it is named Int32
, it is in the System
namespace, and int
is therefore an alias for System.Int32
.
Microsoft defined Int32
...