Ray's playground

 

Item 20: Prefer Immutable Atomic Value Types(Effective C#)

    Immutable types are simpler to code and easier to maintain. Don’t blindly create get and set accessors for every property in your type. Your first choice for types that store data should be immutable, atomic value types. You easily can build more complicated structures from these entities.

posted on 2011-02-10 21:24  Ray Z  阅读(132)  评论(0编辑  收藏  举报

导航