You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Throw.ArgumentNull.WhenNull() works on objects. However, a lot of parameters you'd want to check are strings. So, no you have to do Throw.ArgumentNull.WhenNull(string.IsNullOrEmpty(parameter), nameof(parameter)) which is silly. We should add overloads to Throw.ArgumentNull.WhenNull() that work on strings directly and do the null-or-empty check themselves.
The text was updated successfully, but these errors were encountered:
Currently,
Throw.ArgumentNull.WhenNull()
works on objects. However, a lot of parameters you'd want to check are strings. So, no you have to doThrow.ArgumentNull.WhenNull(string.IsNullOrEmpty(parameter), nameof(parameter))
which is silly. We should add overloads toThrow.ArgumentNull.WhenNull()
that work on strings directly and do the null-or-empty check themselves.The text was updated successfully, but these errors were encountered: