Use Dispose for asymmetric algorithm cleanup
ProprietaryReplace attributed AsymmetricAlgorithm.Clear() calls on known BCL receiver types with Dispose(). The Framework Dispose implementation delegates directly to Clear. Custom static receiver types, method groups, unresolved calls, and hash/symmetric algorithms with different interface dispatch remain unchanged. This opt-in modernization does not change algorithms or key persistence. Lambda/query contexts remain unchanged.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net6. UseDisposeForAsymmetricAlgorithmsmod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net6. UseDisposeForAsymmetricAlgorithmsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.