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
4 changes: 4 additions & 0 deletions src/Chapter04/Table04.04.CheckForNull.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public static void EqualityInEqualityCheckForNull(string? uri = null)
}

}
#pragma warning disable IDE0150 // Prefer 'null' check over type check
public static void IsObject(string? uri = null!)
{
// 4.
Expand All @@ -66,6 +67,7 @@ public static void IsObject(string? uri = null!)
"Uri is null");
}
}
#pragma warning restore IDE0150 // Prefer 'null' check over type check
public static void IsPatternMatching(string? uri = null!)
{
// 5.
Expand All @@ -80,6 +82,7 @@ public static void IsPatternMatching(string? uri = null!)
"Uri is null");
}
}
#pragma warning disable IDE0041 // Use 'is null' check
public static void ReferenceEqualsCheckForNotNull(string? uri = null)
{
// 6.
Expand All @@ -95,5 +98,6 @@ public static void ReferenceEqualsCheckForNotNull(string? uri = null)
$"Uri is: {uri}");
}
}
#pragma warning restore IDE0041 // Use 'is null' check
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public string LastName
}
set
{
if ((_LastName != value))
if (_LastName != value)
{
#region HIGHLIGHT
OnLastNameChanging(value);
Expand Down