Item 18: Distinguish Between Value Types and Reference Types(Effective C#)
摘要:
Build low-level data storage types as value types. Build the behavior ofyour application using reference types. You get the safety of copying datathat gets exported from your class objects. You get the memory usage benefitsthat come with stack-based and inline value storage, and you can utilizestand 阅读全文
posted @ 2011-01-27 23:16 Ray Z 阅读(200) 评论(0) 推荐(0) 编辑