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
Rule raises FP when using the add/remove syntax of an event.
event
public class Foo { private EventHandler someEvent; public event EventHandler SomeEvent // Noncompliant - should be compliant { add { someEvent += value; } remove { someEvent -= value; } } public DoRaise() { someEvent?.Invoke(this, EventArgs.Empty); } }
Issue not raised because the event is raised using the private handler.
Issue is raised because we don't use the event Invoke whereas it is impossible to do so.
Invoke
None.
The text was updated successfully, but these errors were encountered:
valhristov
No branches or pull requests
Description
Rule raises FP when using the add/remove syntax of an
event
.Repro steps
Expected behavior
Issue not raised because the event is raised using the private handler.
Actual behavior
Issue is raised because we don't use the
event
Invoke
whereas it is impossible to do so.Known workarounds
None.
Related information
The text was updated successfully, but these errors were encountered: