Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "When the program is run, it creates a thread that will execute a code in the PrintNumbersWithDelay
method."
A block of code is set as follows:
static void LockTooMuch(object lock1, object lock2) { lock (lock1) { Sleep(1000); lock (lock2); } }
Any command-line input or output is written as follows:
dotnet restore dotnet run
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Right-click on the References folder in the project, and select the Manage NuGet Packages… menu option".
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.