Locks On Objects With Weak Identities - prodot/ReCommended-Extension GitHub Wiki
The following object types should never be used as lock monitors:
string- arrays of value types
-
MarshalByRefObjectderivatives ExecutionEngineException-
OutOfMemoryExceptionor derivatives StackOverflowException-
MemberInfoderivatives -
ParameterInfoor derivatives Threadthis
Note
The analyzer can be configured or deactivated in the ReSharper Options or Rider Settings dialog.