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 S4225: Extension methods should not extend "object" #740

Closed
valhristov opened this issue Sep 1, 2017 · 0 comments
Closed

Rule S4225: Extension methods should not extend "object" #740

valhristov opened this issue Sep 1, 2017 · 0 comments
Assignees
Milestone

Comments

@valhristov
Copy link
Contributor

RSPEC-4225

Creating an extension method that extends object is not recommended because it makes the method available on every type. Extensions should be applied at the most specialized level possible, and that is very unlikely to be object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants