Default value type must match registered type

Proprietary

A DependencyProperty is registered with a type and its metadata carries a default value typed object, so the compiler cannot check one against the other. Flags a default value whose type does not fit the registered type, which throws at run time.

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

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