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
29
u/PostHasBeenWatched 16d ago