I am confused about the warning for
By default, new instances of ReaderWriterLockSlim are created with the LockRecursionPolicy.NoRecursion flag and do not allow recursion. This default policy is recommended for all new development, because recursion introduces unnecessary complications and makes your code more prone to deadlocks.
What I don't understand is why do this warning not apply to the built in
lock statement which is recursive ?