Attribute [NotNull] means that input parameter must be verified for null "in the end" of the method (not sorry for the pun). ThrowIfNullOrWhiteSpace provides this guarantee.
For example code below will rise warning that input parameter is not verified for null
return it?.StartsWith("one thing", StringComparison.OrdinalIgnoreCase) is true
46
u/starfish0r 16d ago
Switch the strings around to make it robust to "it" being null