Skip to content

Commit 51035fe

Browse files
File Scoped Namespaces
1 parent e750c55 commit 51035fe

File tree

448 files changed

+13785
-14242
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

448 files changed

+13785
-14242
lines changed
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_03
1+
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_03;
2+
3+
public class HelloWorld
24
{
3-
public class HelloWorld
5+
public static void Main()
46
{
5-
public static void Main()
6-
{
7-
#region INCLUDE
8-
Console.WriteLine("Up"); Console.WriteLine("Down");
9-
#endregion INCLUDE
10-
}
7+
#region INCLUDE
8+
Console.WriteLine("Up"); Console.WriteLine("Down");
9+
#endregion INCLUDE
1110
}
1211
}
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_04
1+
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_04;
2+
3+
public class HelloWorld
24
{
3-
public class HelloWorld
5+
public static void Main()
46
{
5-
public static void Main()
6-
{
7-
#region INCLUDE
8-
Console.WriteLine("Down");
9-
Console.WriteLine("Side");
10-
Console.WriteLine("Up");
11-
#endregion INCLUDE
12-
}
7+
#region INCLUDE
8+
Console.WriteLine("Down");
9+
Console.WriteLine("Side");
10+
Console.WriteLine("Up");
11+
#endregion INCLUDE
1312
}
1413
}
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_05
1+
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_05;
2+
3+
public class HelloWorld
24
{
3-
public class HelloWorld
5+
public static void Main()
46
{
5-
public static void Main()
6-
{
7-
#region INCLUDE
8-
Console.WriteLine(
9-
"Hello. My name is Inigo Montoya.");
10-
#endregion INCLUDE
11-
}
7+
#region INCLUDE
8+
Console.WriteLine(
9+
"Hello. My name is Inigo Montoya.");
10+
#endregion INCLUDE
1211
}
1312
}
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_06
1+
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_06;
2+
3+
#region INCLUDE
4+
public class Program
25
{
3-
#region INCLUDE
4-
public class Program
6+
public static void Main()
57
{
6-
public static void Main()
7-
{
8-
System.Console.WriteLine("Hello. My name is Inigo Montoya.");
9-
}
8+
System.Console.WriteLine("Hello. My name is Inigo Montoya.");
109
}
11-
#endregion INCLUDE
1210
}
11+
#endregion INCLUDE
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_07
1+
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_07;
2+
3+
#region INCLUDE
4+
public class HelloWorld
25
{
3-
#region INCLUDE
4-
public class HelloWorld
5-
{
6-
// ...
7-
}
8-
#endregion INCLUDE
6+
// ...
97
}
8+
#endregion INCLUDE
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_08
1+
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_08;
2+
3+
#region INCLUDE
4+
public class Program // BEGIN Class definition
25
{
3-
#region INCLUDE
4-
public class Program // BEGIN Class definition
5-
{
6-
public static void Main() // Method declaration
7-
{ // BEGIN method implementation
8-
Console.WriteLine( // This statement spans 2 lines
9-
"Hello, My name is Inigo Montoya");
10-
} // END method implementation
11-
} // END class definition
12-
#endregion INCLUDE
13-
}
6+
public static void Main() // Method declaration
7+
{ // BEGIN method implementation
8+
Console.WriteLine( // This statement spans 2 lines
9+
"Hello, My name is Inigo Montoya");
10+
} // END method implementation
11+
} // END class definition
12+
#endregion INCLUDE
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_09
1+
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_09;
2+
3+
public class Program
24
{
3-
public class Program
5+
#region INCLUDE
6+
public static int Main(string[] args)
47
{
5-
#region INCLUDE
6-
public static int Main(string[] args)
7-
{
8-
#region EXCLUDE
9-
return 0;
10-
#endregion EXCLUDE
11-
}
12-
#endregion INCLUDE
8+
#region EXCLUDE
9+
return 0;
10+
#endregion EXCLUDE
1311
}
12+
#endregion INCLUDE
1413
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_10
2-
{
1+
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_10;
2+
33
#region INCLUDE
44
public class HelloWorld
55
{
@@ -9,4 +9,3 @@ public static void Main()
99
}
1010
}
1111
#endregion INCLUDE
12-
}
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_12
1+
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_12;
2+
3+
#region INCLUDE
4+
public class MiracleMax
25
{
3-
#region INCLUDE
4-
public class MiracleMax
6+
public static void Main()
57
{
6-
public static void Main()
7-
{
8-
string max; // "string" identifies the data type
9-
// "max" is the variable
10-
max = "Have fun storming the castle!";
11-
Console.WriteLine(max);
12-
}
8+
string max; // "string" identifies the data type
9+
// "max" is the variable
10+
max = "Have fun storming the castle!";
11+
Console.WriteLine(max);
1312
}
14-
#endregion INCLUDE
1513
}
14+
#endregion INCLUDE
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_13
1+
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_13;
2+
3+
public class HelloWorld
24
{
3-
public class HelloWorld
5+
public static void Main()
46
{
5-
public static void Main()
6-
{
7-
#region INCLUDE
8-
string message1, message2;
9-
#endregion INCLUDE
7+
#region INCLUDE
8+
string message1, message2;
9+
#endregion INCLUDE
1010

11-
message1 = "My name is Inigo Montoya.";;
12-
message2 = "You killed my father....";
11+
message1 = "My name is Inigo Montoya.";;
12+
message2 = "You killed my father....";
1313

14-
Console.WriteLine(message1);
15-
Console.WriteLine(message2);
16-
}
14+
Console.WriteLine(message1);
15+
Console.WriteLine(message2);
1716
}
1817
}

0 commit comments

Comments
 (0)