Item 18: Distinguish Between Value Types and Reference Types(Effective C#)
2011-01-27 23:16
681 查看
Build low-level data storage types as value types. Build the behavior of your application using reference types. You get the safety of copying data that gets exported from your class objects. You get the memory usage benefits that come with stack-based and inline value storage, and you can utilize standard object-oriented techniques to create the logic of your application. When in doubt about the expected use, use a reference type.
相关文章推荐
- Effective C# Item 6: Distinguish Between Value Types and Reference Types
- Item 6: Distinguish Between Value Types and Reference Types
- Distinguish Between Value Types and Reference Types - Effective C#学习笔记(6)
- Effective C#之6:Distinguish Between Value Type and Reference Type
- Effective C#之20:Distinguish Between Implementing Interfaces and Overriding Virtual Functions
- Primitive, Reference, and Value Types(Chapter 5 of CLR via C#)
- CLR Via C# 3rd 阅读摘要 -- Chapter 5 - Primitive, Reference, and Value Types
- CLR via C# 总结之Chap5 Primitive, Reference, and Value Types
- Distinguish between pointers and references in C++
- Item 1: distinguish between pointers and references
- Type Fundamentals (.NET: Primitive types, reference types and value types )
- Item 1:Distinguish between pointers and references.(More Effective C++)
- Item 6:Distinguish between prefix and postfix forms of increment and decrement operators.(More Effective C++)
- Differenct between return by value and by reference
- Item 19: Ensure That 0 Is a Valid State for Value Types(Effective C#)
- Differenct between return by value and by reference
- Item 20: Prefer Immutable Atomic Value Types(Effective C#)
- Effective C# Item 20: Distinguish Between Implementing Interfaces and Overriding Virtual Functions
- CLR.via.Csharp.3rd Chapter 5: Primitive, Reference, and Value Types
- Difference between menu item types; Display, Output and Action in Dynamics Ax