Use same event in add and remove
ProprietaryThe 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. FindEventDeclarationAddRemoveMismatchmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. FindEventDeclarationAddRemoveMismatchInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.