Use same event in add and remove

Proprietary

The add and remove accessors of an event must pass the same RoutedEvent to AddHandler and RemoveHandler. Flags a declaration whose accessors disagree, which leaves subscribers attached after they unsubscribe.

OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.FindEventDeclarationAddRemoveMismatch
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.FindEventDeclarationAddRemoveMismatch

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