Skip to content

Commit f49da27

Browse files
authored
Looks like NullArgumentException is a type. Fixed with ArgumentNullException (#45041)
1 parent 8872dc2 commit f49da27

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
@@ -34,7 +34,7 @@ private string _msg;
3434
public string Message
3535
{
3636
get => _msg;
37-
set => _msg = value ?? throw new NullArgumentException(nameof(value));
37+
set => _msg = value ?? throw new ArgumentNullException(nameof(value));
3838
}
3939
```
4040

0 commit comments

Comments
 (0)