Get full access to More Effective C# (Includes Content Update Program): 50 Specific Ways to Improve Your C#, 2nd edition and 60K+ other titles, with free 10-day trial of O'Reilly.
There's also live online events, interactive content, certification prep materials, and more.
Chapter 1 Working with Data Types
Item 1: Use Properties Instead of Accessible Data Members
Item 2: Prefer Implicit Properties for Mutable Data
Item 3: Prefer Immutability for Value Types
Item 4: Distinguish Between Value Types and Reference Types
Item 5: Ensure That 0 Is a Valid State for Value Types
Item 6: Ensure That Properties Behave Like Data
Item 7: Limit Type Scope by Using Tuples
Item 8: Define Local Functions on Anonymous Types
Item 9: Understand the Relationships Among the Many Different Concepts of Equality
Item 10: Understand the Pitfalls of GetHashCode()
Chapter 2 API Design
Item 11: Avoid Conversion Operators in Your APIs
Item 12: Use Optional Parameters to Minimize Method Overloads
Item 13: Limit Visibility ...
Get More Effective C# (Includes Content Update Program): 50 Specific Ways to Improve Your C#, 2nd edition now with the O’Reilly learning platform.
O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.
Get Mark Richards’s Software Architecture Patterns ebook to better understand how to design components—and how they should interact.