Get Effective C#: 50 Specific Ways to Improve Your C#, Third Edition now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.
Chapter 1 C# Language Idioms
Item 1: Prefer Implicitly Typed Local Variables
Item 2: Prefer readonly to const
Item 3: Prefer the is or as Operators to Casts
Item 4: Replace string.Format() with Interpolated Strings
Item 5: Prefer FormattableString for Culture-Specific Strings
Item 6: Avoid String-ly Typed APIs
Item 7: Express Callbacks with Delegates
Item 8: Use the Null Conditional Operator for Event Invocations
Item 9: Minimize Boxing and Unboxing
Item 10: Use the new Modifier Only to React to Base Class Updates
Chapter 2 .NET Resource Management
Item 11: Understand .NET Resource Management
Item 12: Prefer Member Initializers to Assignment Statements
Item 13: Use Proper Initialization for Static Class Members
Item 14: ...