Skip to content

Commit ecd1a37

Browse files
Apply suggestions from code review
Co-authored-by: Drew Noakes <[email protected]>
1 parent 1f7e329 commit ecd1a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/whats-new/csharp-14.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public string Message
5050
get;
5151
set
5252
{
53-
field = (value is not null) ? value : throw new NullArgumentException(nameof(value));
53+
field = value ?? throw new ArgumentNullException(nameof(value));
5454
}
5555
}
5656
```

0 commit comments

Comments
 (0)