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: “The previous code fails this rule, as running UnitTest2
before UnitTest1
will fail the test.”
A block of code is set as follows:
public class SampleTests { private static int _staticField = 0; [Fact] public void UnitTest1() { _staticField += 1; Assert.Equal(1, _staticField); } [Fact] public void UnitTest2() { _staticField += 5; Assert.Equal(6, _staticField); } }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
public class SampleTests { private static int _staticField = 0; [Fact] public void UnitTest1() { _staticField += 1; Assert.Equal(1, _staticField); } [Fact] public void UnitTest2() { _staticField += 5; Assert.Equal(6, _staticField); } }
Any command-line input or output is written as follows:
GET https://webapidomain/services
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “After installing the local emulator, you need to grab the connection string, which you can do by browsing to https://localhost:8081/_explorer/index.html and copying the connection string from the Primary Connection String field.”
Tips or important notes
Appear like this.