Find ToImmutable*() that could use Frozen collections
ProprietaryFinds usages of ToImmutableDictionary() and ToImmutableHashSet(). In .NET 8+, ToFrozenDictionary() and ToFrozenSet() provide better read performance.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net8. FindFrozenCollectionmod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net8. FindFrozenCollectionInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.