Is there a .Net StyleCop rule which warns about lock(this), lock(typeof, lock(<string obj>, etc.?
- by Hamish Grubijan
These 3 types of lock are apparently bad.
What other type of locking is bad?
Are there Stylecop / FxCop rules that would catch this?
If not, then would you please help me with a custom rule implementation? They code for all of them must be similar, right?
Thank you.