We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Product and Version Used:
Steps to Reproduce:
Have the below code in a WPF project:
using System.Windows; using System.Windows.Controls; namespace WpfApp1 public class Control1 : Control { public static readonly RoutedEvent MyRoutedEvent = EventManager.RegisterRoutedEvent("MyRouted", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(Control1)); protected void OnMyRoutedEvent() { this.RaiseEvent(new(MyRoutedEvent, this)); } public event RoutedEventHandler MyRouted // <-- RCS1159 is reported { add => this.AddHandler(MyRoutedEvent, value); remove => this.RemoveHandler(MyRoutedEvent, value); } }
Actual Behavior: RCS1159 is reported in above indicated line and changes RoutedEventHandler to EventHandler<RoutedEventArgs>.
RoutedEventHandler
EventHandler<RoutedEventArgs>
Expected Behavior: RCS1159 is not reported.
The text was updated successfully, but these errors were encountered:
This is also reported in interface implementations. Specifically INotifyCollectionChanged.
INotifyCollectionChanged
Sorry, something went wrong.
@nvmkpk Please file a new issue.
Successfully merging a pull request may close this issue.
Product and Version Used:
Steps to Reproduce:
Have the below code in a WPF project:
Actual Behavior:
RCS1159 is reported in above indicated line and changes
RoutedEventHandler
toEventHandler<RoutedEventArgs>
.Expected Behavior:
RCS1159 is not reported.
The text was updated successfully, but these errors were encountered: