ConfusedPenguin
Getting Rid of Nullability Warnings
Here are some examples of how to solve different problems, but I urge to handle each case as it should be (there are situations where you can mark code with
!
to tell the compiler that you (the developer) ensure that it's not null.
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/nullable-warnings12 replies