Skip to content

Commit

Permalink
fix: Changed long comments to two single line comments to prevent wra…
Browse files Browse the repository at this point in the history
…pping in pdf (#562)

## Summary

As related to an issue pointed out by the publisher
(IntelliTect-dev/EssentialCSharp.Tooling#1741).
  • Loading branch information
danOIntellitect authored Oct 5, 2023
1 parent 28ca2cb commit b0fbe98
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/Chapter01/Listing01.22.SampleCILOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ .maxstack 8
↪ System.Console]System.Console::WriteLine(string)
IL_000b: nop
IL_000c: ret
} // End of method System.Void HelloWorld.Program::Main(System.String[])
} // End of method System.Void
// HelloWorld.Program::Main(System.String[])


.method public hidebysig specialname rtspecialname instance void .ctor() cil managed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ static public void Main()
// Invoking ((IExecuteProcessActivity)activity).Run()...
// IWorkflowActivity.Start()...
// ExecuteProcessActivity.RedirectStandardInOut()...
// ExecuteProcessActivity.IExecuteProcessActivity.ExecuteProcess()...
// ExecuteProcessActivity.IExecuteProcessActivity.
// ExecuteProcess()...
// IExecuteProcessActivity.RestoreStandardInOut()...
// IWorkflowActivity.Stop()..
((IExecuteProcessActivity)activity).Run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public static void Main()

Console.WriteLine($"{file.Attributes} = {(int)file.Attributes}");

// Only the ReadOnly attribute works on Linux (The Hidden attribute does not work on Linux)
// Only the ReadOnly attribute works on Linux
// (The Hidden attribute does not work on Linux)
if (!System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux))
{
// Added in C# 4.0/Microsoft .NET Framework 4.0
Expand Down
3 changes: 2 additions & 1 deletion src/Chapter12/Listing12.03.DefiningASpecializedStackClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter12.Listing12_03;
#region INCLUDE
public class CellStack
{
public virtual Cell Pop() { return new Cell(); } // would return that last cell added and remove it from the list
public virtual Cell Pop() { return new Cell(); } // would return
// that last cell added and remove it from the list
public virtual void Push(Cell cell) { }
// ...
}
Expand Down
24 changes: 16 additions & 8 deletions src/Chapter12/Listing12.16.UsingArityToOverloadATypeDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,43 @@ public class Tuple
{
// ...
}
public class Tuple<T1> // : IStructuralEquatable, IStructuralComparable, IComparable
public class Tuple<T1> // : IStructuralEquatable,
// IStructuralComparable, IComparable
{
// ...
}
public class Tuple<T1, T2> // : IStructuralEquatable, IStructuralComparable, IComparable
public class Tuple<T1, T2> // : IStructuralEquatable,
// IStructuralComparable, IComparable
{
// ...
}
public class Tuple<T1, T2, T3> // : IStructuralEquatable, IStructuralComparable, IComparable
public class Tuple<T1, T2, T3> // : IStructuralEquatable,
// IStructuralComparable, IComparable
{
// ...
}
public class Tuple<T1, T2, T3, T4> // : IStructuralEquatable, IStructuralComparable, IComparable
public class Tuple<T1, T2, T3, T4> // : IStructuralEquatable,
// IStructuralComparable, IComparable
{
// ...
}
public class Tuple<T1, T2, T3, T4, T5> // : IStructuralEquatable, IStructuralComparable, IComparable
public class Tuple<T1, T2, T3, T4, T5> // : IStructuralEquatable,
// IStructuralComparable, IComparable
{
// ...
}
public class Tuple<T1, T2, T3, T4, T5, T6> // : IStructuralEquatable, IStructuralComparable, IComparable
public class Tuple<T1, T2, T3, T4, T5, T6>
// : IStructuralEquatable, IStructuralComparable, IComparable
{
// ...
}
public class Tuple<T1, T2, T3, T4, T5, T6, T7> // : IStructuralEquatable, IStructuralComparable, IComparable
public class Tuple<T1, T2, T3, T4, T5, T6, T7>
// : IStructuralEquatable, IStructuralComparable, IComparable
{
// ...
}
public class Tuple<T1, T2, T3, T4, T5, T6, T7, TRest> // : IStructuralEquatable, IStructuralComparable, IComparable
public class Tuple<T1, T2, T3, T4, T5, T6, T7, TRest>
// : IStructuralEquatable, IStructuralComparable, IComparable
{
// ...
}
Expand Down

0 comments on commit b0fbe98

Please sign in to comment.