Note that this appendix adopts an additional convention when displaying code; C# code is always displayed with gray shading:
// this is C# code class MyClass : MyBaseClass {
Any new or important C# code is displayed in bold:
// this is C# code class MyClass : MyBaseClass // we've { int X;// this is interesting
However, any C++ code presented for comparison is presented like this, without any shading:
// this is C++ code class CMyClass : public CMyBaseClass {
The sample code in this appendix also takes account of the most common naming conventions when using the two languages under Windows. Hence class names in the C++ examples begin with C, whereas the corresponding names in the C# examples do not. Also, Hungarian notation is often used for variable names in the C++ samples only.