Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add overloads for Throw.ArgumentNull.WhenNull() for strings #4

Closed
akamsteeg opened this issue May 19, 2019 · 0 comments
Closed

Add overloads for Throw.ArgumentNull.WhenNull() for strings #4

akamsteeg opened this issue May 19, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@akamsteeg
Copy link
Owner

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.

@akamsteeg akamsteeg added the enhancement New feature or request label May 19, 2019
@akamsteeg akamsteeg added this to the 1.4.0 milestone May 19, 2019
@akamsteeg akamsteeg self-assigned this May 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant