Avoid side effects in CLR accessors
ProprietaryThe get and set accessors of a CLR property wrapping a dependency property must only call GetValue/SetValue, because the property system bypasses them entirely. Flags any other statement in an accessor body.
OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. FindSideEffectsInClrAccessorsmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. FindSideEffectsInClrAccessorsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.