Source: Al0045UseGuardNotNullOrEmptyAnalyzer.csDocumentation Index
Fetch the complete documentation index at: https://ancplua.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Description
UseGuard.NotNullOrEmpty() instead of verbose null-or-empty check and throw patterns. The guard helper is more concise and consistent.
Bad Code
Good Code
Properties
- Category: Roslyn Utilities
- Severity: Warning
- Enabled by default: True
- Code fix available: True
