Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Here, if you put a breakpoint in the ImageFile
class's constructor, it would be hit only when the Value
method of the System.Lazy
class is called."
A block of code is set as follows:
Lazy<ImageFile> imageFile = new Lazy<ImageFile>(() => new ImageFile("test")); var image = imageFile.Value.LoadImage;
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
Host.CreateDefaultBuilder(args) .ConfigureAppConfiguration((context, config) => { config.AddSql("Connection string","Query"); }) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); });
Any command-line input or output is written as follows:
dotnet new classlib -o MyLibrary
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "In installation options, from Workloads, select .NET Core cross-platform development for .NET Core applications, as shown in the following screenshot."
Tips or important notes
Appear like this.