Skip to content
New issue

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 S3908: Generic event handlers should be used #360

Closed
jccollet opened this issue May 24, 2017 · 0 comments
Closed

Rule S3908: Generic event handlers should be used #360

jccollet opened this issue May 24, 2017 · 0 comments
Assignees
Labels
Type: New Feature This hasn't been here before.
Milestone

Comments

@jccollet
Copy link
Contributor

jccollet commented May 24, 2017

RSPEC-3908

Since .Net Framework version 2.0 it is not necessary to declare a delegate that specifies a class derived from System.EventArgs. The System.EventHandler<TEventArgs> delegate mechanism should be used instead as it allows any class derived from EventArgs to be used with that handler.
This rule raises an issue when an old style delegate is used as an event handler.

@jccollet jccollet added Area: Rules Type: New Feature This hasn't been here before. labels May 24, 2017
@jccollet jccollet added this to the 5.12 milestone May 24, 2017
@Evangelink Evangelink self-assigned this Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature This hasn't been here before.
Projects
None yet
Development

No branches or pull requests

2 participants