Skip to content

Extract Method should understand using declarations #35646

@jcouv

Description

@jcouv

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions