Skip to main content
Source: AL0011LockKeywordAnalyzer.cs

Description

The lock keyword on object/non-Lock types should be replaced with the Lock class from System.Threading.

Bad Code

Good Code

Properties

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

Configuration