Ray's playground

 

Item 21: Limit Visibility of Your Types(Effective C#)

Those classes and interfaces that you expose publicly to the outside world are your contract: You must live up to them. The more cluttered that interface is, the more constrained your future direction is. The fewer public types you expose, the more options you have to extend and modify any implementation in the future.

posted on 2011-02-11 21:08  Ray Z  阅读(189)  评论(0编辑  收藏  举报

导航