Added comments to identify various constructs
MODIFY
src/Chapter01/Listing01.04.BreakingApartHelloWorld.cs
src/Chapter01/Listing01.04.BreakingApartHelloWorld.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_04
{
#region INCLUDE
- public class Program//Class definition
+ public class Program // BEGIN Class definition
{
public static void Main() // Method declaration
- {
- System.Console.WriteLine("Hello, My name is Inigo Montoya");//This is the statement
- }//This is the end of the method
- }//end of the class definition
+ { // BEGIN method implementation
+ Console.WriteLine( // This statement spans 2 lines
+ "Hello, My name is Inigo Montoya");
+ } // END method implementation
+ } // END class definition
#endregion INCLUDE
}

MODIFY
src/Chapter01/Listing01.10.DeclaringAndAssigningAVariable.cs
src/Chapter01/Listing01.10.DeclaringAndAssigningAVariable.cs
@@ -5,8 +5,8 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_10
{
public static void Main()
{
- string max;
-
+ string max; // "string" identifies the data type
+ // "max" is the variable
max = "Have fun storming the castle!";
System.Console.WriteLine(max);
}

Added comments to identify various constructs