O'Reilly logo

Design Patterns in C# by Steven John Metsker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 26. Introducing Extensions

When you program in C#, you do not begin from scratch—you “inherit” all the power of the .NET FCL. You also usually inherit the code of your predecessors and coworkers. When you're not reorganizing or improving this legacy code, you're extending it. You might say that programming in C# is extension.

If you've ever inherited a codebase, you may have grumbled about its quality. But is the new code you're adding really better? The answer is sometimes subjective, but this chapter reviews a few principles of OO software development that you can use to assess your work.

In addition to normal techniques for extending a codebase, you may be able to apply design patterns to add new behavior. This chapter reviews earlier ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required