diff --git a/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/WriteLine6.cs b/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/WriteLine6.cs
index 68255ea9368..8e06ca84543 100644
--- a/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/WriteLine6.cs
+++ b/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/WriteLine6.cs
@@ -1,24 +1,23 @@
-//
-using System;
+using System;
public class Example
{
public static void Main()
{
+ //
Random rnd = new Random();
// Generate five random Boolean values.
for (int ctr = 1; ctr <= 5; ctr++) {
Boolean bln = Convert.ToBoolean(rnd.Next(0, 2));
Console.WriteLine("True or False: {0}", bln);
}
+
+ // The example displays an output similar to the following:
+ // True or False: False
+ // True or False: True
+ // True or False: False
+ // True or False: False
+ // True or False: True
+ //
}
}
-// The example displays the following output:
-// True or False: False
-// True or False: True
-// True or False: False
-// True or False: False
-// True or False: True
-//
-
-
diff --git a/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/WriteLine7.cs b/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/WriteLine7.cs
index 4e1eb4afd5a..e48fe44472f 100644
--- a/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/WriteLine7.cs
+++ b/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/WriteLine7.cs
@@ -1,4 +1,4 @@
-//
+//
using System;
public class Example
@@ -9,7 +9,5 @@ public static void Main()
}
}
// The example displays output like the following:
-// Today's date: Friday, April 1, 2016
+// Today's date: Monday, April 1, 2019
//
-
-
diff --git a/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/newline1.cs b/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/newline1.cs
index 197d8f1f367..acb548445e9 100644
--- a/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/newline1.cs
+++ b/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/newline1.cs
@@ -1,10 +1,10 @@
-//
-using System;
+using System;
public class Example
{
public static void Main()
{
+ //
string[] lines = { "This is the first line.",
"This is the second line." };
// Output the lines using the default newline sequence.
@@ -22,19 +22,20 @@ public static void Main()
Console.WriteLine();
foreach (string line in lines)
Console.WriteLine(line);
+
+ // The example displays the following output:
+ // With the default new line characters:
+ //
+ // This is the first line.
+ // This is the second line.
+ //
+ // With redefined new line characters:
+ //
+ //
+ //
+ // This is the first line.
+ //
+ // This is the second line.
+ //
}
}
-// The example displays the following output:
-// With the default new line characters:
-//
-// This is the first line.
-// This is the second line.
-//
-// With redefined new line characters:
-//
-//
-//
-// This is the first line.
-//
-// This is the second line.
-//
diff --git a/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/writeline_boolean1.cs b/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/writeline_boolean1.cs
index 964cdc10290..fba34f731e9 100644
--- a/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/writeline_boolean1.cs
+++ b/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/writeline_boolean1.cs
@@ -1,10 +1,10 @@
-//
-using System;
+using System;
public class Example
{
public static void Main()
{
+ //
// Assign 10 random integers to an array.
Random rnd = new Random();
int[] numbers = new int[10];
@@ -18,6 +18,6 @@ public static void Main()
Console.WriteLine(even);
Console.WriteLine();
}
+ //
}
}
-//
\ No newline at end of file
diff --git a/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/writeline_obj1.cs b/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/writeline_obj1.cs
index e0205ee9a5c..d9e5c533435 100644
--- a/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/writeline_obj1.cs
+++ b/snippets/csharp/VS_Snippets_CLR_System/system.Console.WriteLine/CS/writeline_obj1.cs
@@ -1,21 +1,22 @@
-//
-using System;
+using System;
public class Example
{
public static void Main()
{
+ //
Object[] values = { true, 12.632, 17908, "stringValue",
'a', 16907.32m };
foreach (var value in values)
Console.WriteLine(value);
+
+ // The example displays the following output:
+ // True
+ // 12.632
+ // 17908
+ // stringValue
+ // a
+ // 16907.32
+ //
}
}
-// The example displays the following output:
-// True
-// 12.632
-// 17908
-// stringValue
-// a
-// 16907.32
-//
\ No newline at end of file