Overview
Discover tips for improving your workflows in C# development. Even experienced programmers might have missed these hidden or interesting methods that help you write better code.
Syllabus
Introduction
- Ten tips for C# developers
- How to access the sample code on GitHub
1. Ten Tips
- Avoid race condition with TryGetValue method
- Better switch statements with pattern matching
- Readable literals with the underscore
- Extract items from sequence with indices
- Discard feature
- Be more functional with the conditional operator
- Create a thread-safe immutable type
- Use the ImmutableList collection
- Show custom debugger information
- Work with nested collections and SelectMany
- Next steps
Continue Your Journey