Gunnar Peipman's ASP.NET blog

ASP.NET, C#, SharePoint, SQL Server and general software development topics.






Refactoring: extract interface

Extract interface is one of the most common refactoring techniques. Motivation behind extract interface refactoring method is to avoid direct dependencies between classes. Instead of using classes in method calls we use interfaces so we can also use subclasses of those classes we used before. Also we can create brand new classes that use follow these interfaces and we can use these classes instead of current ones.


NB! This blog is moved to

Click here to go to article


jiro helv said:

hello there, i hope someone would help... i have a website written and published if i like to have the same site class by class i should rewrite the code? or there is any program helps me getting the code? thank you

# March 26, 2009 7:44 PM

DigiMortal said:

Please specify your problem. I cannot understand what you want to do.

# March 27, 2009 4:03 AM