Gets the number of times the current thread has entered the lock in write mode, as an indication of recursion.
Assembly: System.Core (in System.Core.dll)
Use this property only for debugging, profiling, and logging purposes, and not to control the behavior of an algorithm. The results can change as soon as they have been calculated. Therefore, it is not safe to make decisions based on this property.
Available since 8
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Available since 8.1