Specification: https://github.com/dotnet/csharplang/blob/main/proposals/param-nullchecking.md
In short though this allows for standard null validation on parameters to be simplified using a small annotation on parameters:
// Before
void Insert(string s) {
if (s is null)
throw new ArgumentNullException(nameof(s));
...
}
// After
void Insert(string s!!) {
...
}
LDM history:
Specification: https://github.com/dotnet/csharplang/blob/main/proposals/param-nullchecking.md
In short though this allows for standard
nullvalidation on parameters to be simplified using a small annotation on parameters:LDM history: