Use Dispose for asymmetric algorithm cleanup

Proprietary

Replace 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.UseDisposeForAsymmetricAlgorithms
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.UseDisposeForAsymmetricAlgorithms

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.