Avoid side effects in attached property CLR accessors
ProprietaryXAML bypasses the CLR Get/Set methods of an attached property and calls GetValue/SetValue directly, so any other work an accessor does runs only when the property is set from code. Flags the offending statement.
OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. FindSideEffectsInAttachedPropertyAccessormod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. FindSideEffectsInAttachedPropertyAccessorInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.