Skip to content

Commit 79c1994

Browse files
Update docs/csharp/programming-guide/classes-and-structs/auto-implemented-properties.md
Co-authored-by: David Pine <[email protected]>
1 parent 6fc4a18 commit 79c1994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/programming-guide/classes-and-structs/auto-implemented-properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public string FirstName
4040
get;
4141
set
4242
{
43-
field = ((string.IsNullOrWhiteSpace(value) == false)
43+
field = (string.IsNullOrWhiteSpace(value) is false
4444
? value
4545
: throw new ArgumentException(nameof(value), "First name can't be whitespace or null"));
4646
}

0 commit comments

Comments
 (0)