【问题标题】:ReSharper Replace All Method Implementations with NotImplementedExceptionReSharper 用 NotImplementedException 替换所有方法实现
【发布时间】:2015-08-25 15:47:38
【问题描述】:

我复制了一个庞大的类库,我想将所有类中的所有方法设置为:

throw new NotImplementedException();

ReSharper 是否有办法在整个解决方案中全局执行此操作?

【问题讨论】:

    标签: refactoring resharper automated-refactoring resharper-9.0 notimplementedexception


    【解决方案1】:

    我会说,您可以使用 ReSharper 的带模式搜索功能以半自动方式执行此操作。我最好附上截图。

    这样您就可以替换解决方案中的所有私有实例方法。然后你需要用静态和虚拟关键字替换所有公共的、受保护的、内部的、相同的,你就会在那里。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-12-25
      • 1970-01-01
      • 1970-01-01
      • 2010-10-25
      • 2012-02-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多