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

Extract Method should understand using declarations #35646

Closed
jcouv opened this issue May 10, 2019 · 0 comments · Fixed by #76343
Closed

Extract Method should understand using declarations #35646

jcouv opened this issue May 10, 2019 · 0 comments · Fixed by #76343
Assignees
Milestone

Comments

@jcouv
Copy link
Member

jcouv commented May 10, 2019

image

using System;

class C2 : IDisposable
{
    void M()
    {
        using var x2 = new C2();
        x2.ToString();




        x2.ToString();

    }

    public void Dispose() => throw new NotImplementedException();
}

FYI @chsienki

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

Successfully merging a pull request may close this issue.

4 participants