Chris Falter

.NET Design and Best Practices
posts - 49, comments - 88, trackbacks - 24

My Links

News

All source code published on this blog is placed in the public domain.

Archives

Post Categories

Image Galleries

About Me

Sunday, March 29, 2009

How to Reuse Code Without Creating an Implicit API

If you're writing a reusable framework, you might want to avoid declaring a class or method as public if you don't want to support it as part of the interface. At the same time, you might want to use it from a different internal assembly--especially if you're writing tests. Believe it or not, there is a way to achieve both seemingly contradictory ends in one codebase. Read on to find out how you can have your cake and eat it, too!
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Sunday, March 29, 2009 2:44 PM | Feedback (0) | Filed Under [ Coding Practices and Design Patterns Testing & Debugging ]

Powered by: