Skip to content

fix: Wrapped long lines #569

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

Merged
merged 2 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
fix: Wrapped long lines
  • Loading branch information
danOIntellitect committed Oct 17, 2023
commit 0824d398f87f8b4ade466a4ada7c7e4a8ed64531
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public static List<string>
if (data.Count() != parallelGroups.Sum(
item => item.Length))
{
throw new Exception("data.Count() != parallelGroups.Sum(item => item.Count()");
throw new Exception("data.Count() != parallelGroups" +
".Sum(item => item.Count()");
}
// ...
#endregion INCLUDE
Expand Down
3 changes: 2 additions & 1 deletion src/Chapter21/Listing21.09.ParallelLinqQueryExpressions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ orderby text
if (data.Count() != parallelGroups.Sum(
item => item.Count()))
{
throw new Exception("data.Count() != parallelGroups.Sum(item => item.Count()");
throw new Exception("data.Count() != parallelGroups" +
".Sum(item => item.Count()");
}
//...
#endregion INCLUDE
Expand Down
3 changes: 2 additions & 1 deletion src/Chapter22/Listing22.01.UnsychronizedState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public static int Main(string[] args)
{
if (args?.Length > 0) { _ = int.TryParse(args[0], out _Total); }

Console.WriteLine($"Increment and decrementing {_Total} times...");
Console.WriteLine($"Increment and decrementing " +
$"{_Total} times...");

// Use Task.Factory.StartNew for .NET 4.0
Task task = Task.Run(() => Decrement());
Expand Down
3 changes: 2 additions & 1 deletion src/Chapter22/Listing22.02.UnsychronizedLocalVariables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ 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 {total} times...");
Console.WriteLine($"Increment and decrementing " +
$"{total} times...");
int x = 0;
Parallel.For(0, total, i =>
{
Expand Down
3 changes: 2 additions & 1 deletion src/Chapter22/Listing22.03.SynchronizingWithMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public class Program
public static int Main(string[] args)
{
if (args?.Length > 0) { _ = int.TryParse(args[0], out _Total); }
Console.WriteLine($"Increment and decrementing {_Total} times...");
Console.WriteLine($"Increment and decrementing " +
$"{_Total} times...");

// Use Task.Factory.StartNew for .NET 4.0
Task task = Task.Run(() => Decrement());
Expand Down
3 changes: 2 additions & 1 deletion src/Chapter22/Listing22.04.SynchronizingWithLockKeyword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public class Program
public static int Main(string[] args)
{
if (args?.Length > 0) { _ = int.TryParse(args[0], out _Total); }
Console.WriteLine($"Increment and decrementing {_Total} times...");
Console.WriteLine($"Increment and decrementing " +
$"{_Total} times...");

// Use Task.Factory.StartNew for .NET 4.0
Task task = Task.Run(() => Decrement());
Expand Down
3 changes: 2 additions & 1 deletion src/Chapter22/Listing22.05.AsyncMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public static async Task<int> Main(string[] args)
#endregion HIGHLIGHT
{
if (args?.Length > 0) { _ = int.TryParse(args[0], out _Total); }
Console.WriteLine($"Increment and decrementing {_Total} times...");
Console.WriteLine($"Increment and decrementing " +
$"{_Total} times...");

// Use Task.Factory.StartNew for .NET 4.0
Task task = Task.Run(() => Decrement());
Expand Down