Conventions Used in This Book
The following typographic conventions are used in this book:
Italic is used for definitions of technical terms, URLs, filenames, directory names, and pathnames.
Constant widthis used for code samples, statements, namespaces, classes, assemblies, interface directives, operators, attributes, and reserved words.Bold constant widthis used for emphasis in code samples.
This icon designates a note that is an important aside to the nearby text.
This icon designates a warning relating to the nearby text.
Whenever I wish to make a point in a code sample, I do so with the static Assert method of the Debug class:
int number = 1+2;
Debug.Assert(number == 3);The Assert method accepts a Boolean statement and throws an exception when the statement is false.
This book follows the recommended naming guidelines and coding style presented in Appendix E. Whenever it deviates from that standard, it is likely the result of space or line-length constraints. With respect to naming conventions, I use “Pascal casing” for public member methods and properties; this means the first letter of each word in the name is capitalized. For local variables and method parameters I use “Camel casing,” in which the first letter of the first word of the name is not capitalized. I prefix private ...

