★ wanayoo — archive 1999 https://github.com/code-cracker/code-cracker/issues/696Nouvelle recherche | Portail wanayoo
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

BUG: CC00091 Method `GetEnumerator` should never be made static #696

Closed
giggio opened this issue Jan 30, 2016 · 3 comments
Closed

BUG: CC00091 Method `GetEnumerator` should never be made static #696

giggio opened this issue Jan 30, 2016 · 3 comments
Assignees
Milestone

Comments

@giggio
Copy link
Member

@giggio giggio commented Jan 30, 2016

If a method is named GetEnumerator and returns an IEnumerator it should not be made static. If it was changed you could break existing foreachs. See reference on MSDN;

Example:

class MyList
{
    public System.Collections.IEnumerator GetEnumerator()
    {
        yield return "x";
        yield return "y";
    }
}
@giggio giggio added this to the 1.0.0 milestone Jan 30, 2016
@Vossekop
Copy link
Contributor

@Vossekop Vossekop commented Feb 1, 2016

I'll fix this one if you want!

@giggio
Copy link
Member Author

@giggio giggio commented Feb 1, 2016

Go for it. I'll add you to the collaborators group. You will be getting an email from github, let me know when you got it.

@giggio giggio modified the milestones: 1.0.0-rc6, 1.0.0 Feb 1, 2016
@Vossekop
Copy link
Contributor

@Vossekop Vossekop commented Feb 1, 2016

Got the mail, and clicked the link and all. Promptly screwed up my own fork as well... I'm still getting used to this Git stuff, give me TFVC any time.

@giggio giggio closed this in 3196b99 Feb 8, 2016
@giggio giggio added 3 - Done and removed 2 - Working labels Feb 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.