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 width Used for code samples, statements, namespaces, classes, assemblies, interface directives, operators, attributes, and reserved words.
-
Constant width bold Used for emphasis in code samples.
Tip
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 statement and
throws an exception when the statement is false.
The book follows the recommended naming guidelines and coding style presented in Appendix E of my book Programming .NET
Components, Second Edition (O'Reilly). 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 ...