Skip to main content
Source: Al0047UseGuardNotZeroAnalyzer.cs

Description

Use Guard.NotZero() instead of verbose zero-check and throw patterns.

Bad Code

Good Code

Properties

  • Category: Roslyn Utilities
  • Severity: Warning
  • Enabled by default: True
  • Code fix available: True

Configuration