Convert a trivial dependency property callback to a lambda
ProprietaryA PropertyChangedCallback, CoerceValueCallback or ValidateValueCallback whose body is a single expression is inlined as a lambda at the registration, so the callback sits next to the property it belongs to. The method is removed when nothing else used it.
OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. ConvertTrivialCallbackToLambdamod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. ConvertTrivialCallbackToLambdaInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.