Use System.Threading.Lock instead of object for locking
ProprietaryIn .NET 9+, use System.Threading.Lock instead of object for lock objects. The dedicated Lock type provides better performance.
OpenRewrite. Recipes. CSharp. CodeQuality. Style. FindUseSystemThreadingLockmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Style. FindUseSystemThreadingLockInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.