Call RemoveHandler in remove

Proprietary

The remove accessor of an event backed by a RoutedEvent must call RemoveHandler. Flags an accessor that calls AddHandler instead, which subscribes a second time rather than unsubscribing.

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

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