Removed unnecessary data type in array construction
MODIFY
src/Chapter03/Listing03.19.InitializingAJaggedArray.cs
src/Chapter03/Listing03.19.InitializingAJaggedArray.cs
@@ -6,10 +6,10 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter03.Listing03_19
{
#region INCLUDE
int[][] cells = {
- new int[] {1, 0, 2, 0},
- new int[] {1, 2, 0},
- new int[] {1, 2},
- new int[] {1}
+ new [] {1, 0, 2, 0},
+ new [] {1, 2, 0},
+ new [] {1, 2},
+ new [] {1}
};
#endregion INCLUDE
}

MODIFY
src/Chapter03/Listing03.20.DeclaringAndAccessingAnArray.cs
src/Chapter03/Listing03.20.DeclaringAndAccessingAnArray.cs
@@ -5,7 +5,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter03.Listing03_20
public static void Main()
{
#region INCLUDE
- string[] languages = new string[9]{
+ string[] languages = new []{
"C#", "COBOL", "Java",
"C++", "TypeScript", "Visual Basic",
"Python", "Lisp", "JavaScript"};

MODIFY
src/Chapter03/Listing03.21.SwappingDataBetweenPositionsInAnArray.cs
src/Chapter03/Listing03.21.SwappingDataBetweenPositionsInAnArray.cs
@@ -5,7 +5,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter03.Listing03_21
public static void Main()
{
#region INCLUDE
- string[] languages = new string[] {
+ string[] languages = new [] {
"C#", "COBOL", "Java",
"C++", "TypeScript", "Visual Basic",
"Python", "Lisp", "JavaScript" };

MODIFY
src/Chapter03/Listing03.23.DeclaringAJaggedArray.cs
src/Chapter03/Listing03.23.DeclaringAJaggedArray.cs
@@ -6,9 +6,9 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter03.Listing03_23
{
#region INCLUDE
int[][] cells = {
- new int[]{1, 0, 2},
- new int[]{0, 2, 0},
- new int[]{1, 2, 1}
+ new []{1, 0, 2},
+ new []{0, 2, 0},
+ new []{1, 2, 1}
};
cells[1][0] = 1;

MODIFY
src/Chapter03/Listing03.27.Slicing.cs
src/Chapter03/Listing03.27.Slicing.cs
@@ -5,7 +5,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter03.Listing03_27
public static void Main()
{
#region INCLUDE
- string[] languages = new string[] {
+ string[] languages = new [] {
"C#", "COBOL", "Java",
"C++", "TypeScript", "Swift",
"Python", "Lisp", "JavaScript"};

Removed unnecessary data type in array construction