← All recipes
Moderne licensed

Backing member for a DependencyProperty should match registered name

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Wpf.RenameDependencyPropertyBackingMemberArtifactOpenRewrite.Recipes.CSharp.CodeQuality

A DependencyProperty backing member must be named <RegisteredName>Property so that the registration and the member agree. Renames the member and all references to it.

Single recipecsharpcode-qualityProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.RenameDependencyPropertyBackingMember

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.CodeQuality