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

Modify rules to properly handle C# extension methods #2

Open
patrickfrancis opened this issue Dec 11, 2012 · 0 comments
Open

Modify rules to properly handle C# extension methods #2

patrickfrancis opened this issue Dec 11, 2012 · 0 comments
Assignees
Labels

Comments

@patrickfrancis
Copy link
Collaborator

C# supports extension methods, which are written separately from a class but act as if they're member methods. The syntax for an extension method is to include the target class as the first parameter, along with the "this" keyword. For example:

public static bool ContainsCallTo(this XContainer container, string functionName)

In this case, container should not be a Secondary Argument. It should perhaps be the Declared Class?

@ghost ghost assigned patrickfrancis Dec 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant