Do not use anonymous delegates to unsubscribe from events
ProprietaryUnsubscribing from events using anonymous delegates or lambdas has no effect because each lambda creates a new delegate instance.
OpenRewrite. Recipes. CSharp. CodeQuality. Style. FindAvoidAnonymousDelegateForUnsubscribemod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Style. FindAvoidAnonymousDelegateForUnsubscribeInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.