Use byte arrays for SOAP hex parses with a silent fallback
ProprietaryReplace closed SoapHexBinary.Parse locals used only through Value inside a direct try body with byte arrays and a Convert.FromHexString helper. Require one bare, unfiltered catch returning a literal or default and no finally. Preserve Framework space/CR/LF filtering, fresh empty arrays, argument evaluation and the existing fallback. Exceptions observed by a caller, typed catch, filter, log or rethrow remain for review. Targets .NET 5+.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net5. UseByteArraysForCaughtSoapHexParsesmod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net5. UseByteArraysForCaughtSoapHexParsesInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.