-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
There has been some discussion and misunderstanding on whether or not application and/or library developers now can remove any null guards (e.g. if(input != null){...}
, ArgumentNullException
) because of this feature. See for example here and here. The documentation needs clear guidance if or if not (and if so, when) it is now safe to remove null guards.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: bea1e2ab-5517-b17c-4a65-7c7bae09261a
- Version Independent ID: 2a326631-709b-4461-6c15-a75a5087ef1d
- Content: Nullable reference types in C# - C# 8.0 language proposals
- Content Source: proposals/csharp-8.0/nullable-reference-types.md
- Product: dotnet-csharp
- Technology: csharp-spec
- GitHub Login: @dotnet-bot
- Microsoft Alias: wiwagn
atifaziz, jnyrup and IEvangelist