Conventions Used in This Book
The following typographic conventions are used in this book:
- Italic
Used for technical terms, URLs, addresses, filenames, and file extensions.
Constant widthUsed for code samples, statements, namespaces, classes, assemblies, interface directives, operators, attributes, and reserved words.
Constant width boldUsed for emphasis in code samples.
Note
This icon signifies a tip, suggestion, or general note.
Warning
This icon indicates a warning or caution.
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 value and throws an exception when it is false.
The book follows the recommended naming guidelines and coding
style available at http://www.idesign.net.
Whenever it deviates from that standard, it is likely the result of
space or line-length constraints. As for 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 each word in the name is capitalized, with the exception
of the first word. The names of private member variables are prefixed
with m_:
class SomeClass
{
int m_Number;
public int Number
{get;set};
}I use ellipses between curly braces to indicate the presence of code that is necessary but unspecified:
class SomeClass
{...}In the interest ...