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 S3906: Declare event handlers correctly #359

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

Rule S3906: Declare event handlers correctly #359

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-3906

Delegate event handlers should have a very specific signature:

  • Return type void.
  • First argument of type System.Object and named 'sender'.
  • Second argument of type System.EventArgs (or any derived type) and is named 'e'.

This rule raises an issue whenever a delegate declaration doesn't match that signature.

@jccollet jccollet modified the milestones: 5.11, 5.12 May 24, 2017
@jccollet jccollet added the Type: New Feature This hasn't been here before. label May 24, 2017
@Evangelink Evangelink self-assigned this Jun 9, 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