Skip to content

Commit

Permalink
fix: Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminMichaelis committed Nov 29, 2024
1 parent 99d6952 commit 73ea0c9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
2 changes: 0 additions & 2 deletions src/Chapter20/Listing20.02.AsynchronousWebRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter20.Listing20_02;
#region INCLUDE
using System;
using System.IO;
using System.Net;
using System.Runtime.ExceptionServices;
using System.Threading.Tasks;

Expand Down Expand Up @@ -48,7 +47,6 @@ public static void Main(string[] args)
textOccurrenceCount} times at URL '{url}'.");

});

try
{
while (!task.Wait(100))
Expand Down
7 changes: 1 addition & 6 deletions src/Chapter21/Listing21.01.SynchronousPiSections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static void Main()
{
string pi = "";
const int iterations = TotalDigits / BatchSize;
for(int i = 0; i < iterations; i++)
for (int i = 0; i < iterations; i++)
{
pi += PiCalculator.Calculate(
BatchSize, i * BatchSize);
Expand Down Expand Up @@ -41,8 +41,3 @@ public static string Calculate(
*/
#endregion EXCLUDE
#endregion INCLUDE





5 changes: 0 additions & 5 deletions src/Chapter21/Listing21.02.ParallelPiCalculation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,3 @@ public static void Main()
}
}
#endregion INCLUDE





Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static void EncryptFiles(
Console.WriteLine(
"ERROR: {0}:",
exception.GetType().Name);
foreach(Exception item in
foreach (Exception item in
#region HIGHLIGHT
exception.InnerExceptions)
#endregion HIGHLIGHT
Expand All @@ -56,8 +56,3 @@ private static void Encrypt(string fileName)
#endregion EXCLUDE
}
#endregion INCLUDE





0 comments on commit 73ea0c9

Please sign in to comment.