← All recipes
Moderne licensed

ValueConversion must use correct types

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Wpf.UseCorrectValueConversionTypesArtifactOpenRewrite.Recipes.CSharp.CodeQuality

[ValueConversion(typeof(source), typeof(target))] must name the types the converter's Convert method reads and produces. Replaces an argument that names a different 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.UseCorrectValueConversionTypes

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

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