Contents
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
Get Effective C#: 50 Specific Ways to Improve Your C#, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.