diff --git a/src/Chapter22/Listing22.01.UnsychronizedState.cs b/src/Chapter22/Listing22.01.UnsychronizedState.cs index 04e5c28b7..c8a7b1e1b 100644 --- a/src/Chapter22/Listing22.01.UnsychronizedState.cs +++ b/src/Chapter22/Listing22.01.UnsychronizedState.cs @@ -13,7 +13,7 @@ public static int Main(string[] args) { if (args?.Length > 0) { _ = int.TryParse(args[0], out _Total); } - Console.WriteLine($"Increment and decrementing " + + Console.WriteLine("Increment and decrementing " + $"{_Total} times..."); // Use Task.Factory.StartNew for .NET 4.0 diff --git a/src/Chapter22/Listing22.02.UnsychronizedLocalVariables.cs b/src/Chapter22/Listing22.02.UnsychronizedLocalVariables.cs index e39c4936e..f954e645b 100644 --- a/src/Chapter22/Listing22.02.UnsychronizedLocalVariables.cs +++ b/src/Chapter22/Listing22.02.UnsychronizedLocalVariables.cs @@ -10,7 +10,7 @@ public static int Main(string[] args) { int total = int.MaxValue; if (args?.Length > 0) { _ = int.TryParse(args[0], out total); } - Console.WriteLine($"Increment and decrementing " + + Console.WriteLine("Increment and decrementing " + $"{total} times..."); int x = 0; Parallel.For(0, total, i => diff --git a/src/Chapter22/Listing22.03.SynchronizingWithMonitor.cs b/src/Chapter22/Listing22.03.SynchronizingWithMonitor.cs index 7ac001954..c182a4948 100644 --- a/src/Chapter22/Listing22.03.SynchronizingWithMonitor.cs +++ b/src/Chapter22/Listing22.03.SynchronizingWithMonitor.cs @@ -16,7 +16,7 @@ public class Program public static int Main(string[] args) { if (args?.Length > 0) { _ = int.TryParse(args[0], out _Total); } - Console.WriteLine($"Increment and decrementing " + + Console.WriteLine("Increment and decrementing " + $"{_Total} times..."); // Use Task.Factory.StartNew for .NET 4.0 diff --git a/src/Chapter22/Listing22.04.SynchronizingWithLockKeyword.cs b/src/Chapter22/Listing22.04.SynchronizingWithLockKeyword.cs index bb81b14d3..3603e9183 100644 --- a/src/Chapter22/Listing22.04.SynchronizingWithLockKeyword.cs +++ b/src/Chapter22/Listing22.04.SynchronizingWithLockKeyword.cs @@ -15,7 +15,7 @@ public class Program public static int Main(string[] args) { if (args?.Length > 0) { _ = int.TryParse(args[0], out _Total); } - Console.WriteLine($"Increment and decrementing " + + Console.WriteLine("Increment and decrementing " + $"{_Total} times..."); // Use Task.Factory.StartNew for .NET 4.0 diff --git a/src/Chapter22/Listing22.05.AsyncMain.cs b/src/Chapter22/Listing22.05.AsyncMain.cs index dcca05bb8..9749e3c81 100644 --- a/src/Chapter22/Listing22.05.AsyncMain.cs +++ b/src/Chapter22/Listing22.05.AsyncMain.cs @@ -15,7 +15,7 @@ public static async Task Main(string[] args) #endregion HIGHLIGHT { if (args?.Length > 0) { _ = int.TryParse(args[0], out _Total); } - Console.WriteLine($"Increment and decrementing " + + Console.WriteLine("Increment and decrementing " + $"{_Total} times..."); // Use Task.Factory.StartNew for .NET 4.0