Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 668 Bytes

File metadata and controls

20 lines (14 loc) · 668 Bytes

AL1212: Use null-or-empty guard helper

Property Value
Severity Warning
Category Roslyn Utilities
Code fix No
Analyzer Al1212UseGuardNotNullOrEmptyAnalyzer
Enabled by default Yes

Description

Use Guard.NotNullOrEmpty() instead of verbose if (string.IsNullOrEmpty(...)) throw new ArgumentNullException/ArgumentException patterns.

See also