Attack of the Clones: Eliminating Duplicate Code in .NET

Code duplication threatens the agility and maintainability of software. Literally repeated code can be easily remedied, but there are other more subtle and insidious kinds of code duplication. What about code that’s the same except for type, or code that needs to be applied in many locations? In this session, you will learn about tools to help find duplicate code. After identifying problem code, you will learn how to eradicate it with software design techniques and .NET framework features. Specifically, you will see how to apply generics, delegates, extension methods, and attributes to quash repeated code. You will leave with ideas and techniques to reduce duplicated code in your development.

You can find the slide deck and sample code at this GitHub Repository.