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

fix: Changed long comments to two single line comments to prevent wrapping in pdf #562

Merged
merged 2 commits into from
Oct 5, 2023
Merged
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
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
Loading