Posts Tagged ‘refactor’

Refactor: Create and use interface from a class using resharper

June 23, 2013 Leave a comment

Press ‘ctrl + shift + R’ to bring up the refactor options for the class.

  1. select ‘extract interface’ –┬áThis will extract out interface for the class.
  2. select ‘use base type where possible’ –┬áTo replace usages of class with interface.