← All recipes
Moderne licensed

Find obsolete 5-argument EncoderParameter constructor

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.FindObsoleteEncoderParameterCtorArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds uses of the obsolete EncoderParameter(Encoder, int, int, int, int) constructor (obsolete as of .NET Framework 4.5). Use the EncoderParameter(Encoder, int, EncoderParameterValueType, IntPtr) overload instead.

Single recipesearchdotnetnet-frameworkdrawingProprietary

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.Migration.Dotnet.NetFramework.FindObsoleteEncoderParameterCtor

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

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet