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: False
The lock keyword on object/non-Lock types should be replaced with the Lock class