Do not use anonymous delegates to unsubscribe from events

Proprietary

Unsubscribing from events using anonymous delegates or lambdas has no effect because each lambda creates a new delegate instance.

OpenRewrite.Recipes.CSharp.CodeQuality.Style.FindAvoidAnonymousDelegateForUnsubscribe
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Style.FindAvoidAnonymousDelegateForUnsubscribe

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