← All recipes
Moderne licensed

Add ValueConversion attribute (unknown types)

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Wpf.FindValueConverterWithUnknownConversionTypesArtifactOpenRewrite.Recipes.CSharp.CodeQuality

An IValueConverter should be annotated with [ValueConversion]. Flags a converter that needs one but whose source and target types cannot be read off its Convert method.

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

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

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