← All recipes
Moderne licensed

Metadata must be of the same type or a super type

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Wpf.FindOverrideMetadataTypeMismatchArtifactOpenRewrite.Recipes.CSharp.CodeQuality

OverrideMetadata merges the new metadata into what the DependencyProperty was registered with, and throws when the override cannot represent it. Flags an override whose metadata type is not assignable to the registered metadata type.

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.FindOverrideMetadataTypeMismatch

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

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