Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Minor updates #795

Open
wants to merge 1 commit into
base: v12.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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





Loading