CLR accessor for attached property must match registered type

Proprietary

The static Get/Set accessors of an attached property must use the type the property was registered with, otherwise reading or writing it throws at run time. Corrects the return type, the value parameter type and the cast in the getter.

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

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