Name the CoerceValueCallback CoerceName

Proprietary

The CoerceValueCallback passed to a dependency property's PropertyMetadata should be named after the registered property — CoerceValue for a property registered as Value. Renames the method and all references to it, in every file.

OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.RenameCoerceValueCallbackToMatchRegisteredName
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.RenameCoerceValueCallbackToMatchRegisteredName

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.