Description
UseGuard.NotNullOrWhiteSpace() instead of verbose null-or-whitespace check and throw patterns.
Bad Code
Good Code
Properties
- Category: Roslyn Utilities
- Severity: Warning
- Enabled by default: True
- Code fix available: True
Use Guard.NotNullOrWhiteSpace() instead of verbose patterns
Guard.NotNullOrWhiteSpace() instead of verbose null-or-whitespace check and throw patterns.