小编ang*_*gus的帖子

使用自动属性VS2015重构"实现接口"

我试图让Visual Studio 2015(14.0)在使用C#重构实现接口时使用自动属性.

就是我想要这个;

public object SomeProperty { get; set; }
Run Code Online (Sandbox Code Playgroud)

与此相反;

public object SomeProperty
{
    get
    {
        throw new NotImplementedException();
    }
    set
    {
        throw new NotImplementedException();
    }
}
Run Code Online (Sandbox Code Playgroud)

我已经在Visual Studio的过去版本中通过编辑代码片段文件(此处的说明)完成了此操作,但我无法使用Visual Studio 2015来实现此功能.

c# ide refactoring visual-studio visual-studio-2015

7
推荐指数
1
解决办法
798
查看次数

标签 统计

c# ×1

ide ×1

refactoring ×1

visual-studio ×1

visual-studio-2015 ×1