Skip to content
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
2 changes: 1 addition & 1 deletion src/Chapter05/Listing05.30.RethrowingAnException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void Main()
catch (FormatException exception)
{
Console.WriteLine(
"A FormateException was thrown");
"A FormatException was thrown");
}
#region INCLUDE
// ...
Expand Down
8 changes: 4 additions & 4 deletions src/Chapter06/Listing06.06.AccessingFields.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public static void Main()
employee1.Salary = "Too Little";
IncreaseSalary(employee1);
Console.WriteLine(
"{0} {1}: {2}",
employee1.FirstName,
employee1.LastName,
employee1.Salary);
$"{
employee1.FirstName } {
employee1.LastName }: {
employee1.Salary }");
#endregion HIGHLIGHT
// ...
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public required string Title
}
set
{
ArgumentException.ThrowIfNullOrEmpty(
value = value?.Trim()!);
ArgumentException.ThrowIfNullOrEmpty(value);
_Title = value;
}
}
Expand All @@ -56,8 +55,7 @@ public required string Isbn
}
set
{
ArgumentException.ThrowIfNullOrEmpty(
value = value?.Trim()!);
ArgumentException.ThrowIfNullOrEmpty(value);
_Isbn = value;
}
}
Expand Down