Ten Tips for the C# Developer
48mIntermediate2024-08-26
Authors

Walt Ritscher
Programmer, UI Designer, Staff Instructor at LinkedIn Learning

Learn-it Labs
Course details
Take a deep dive into improving your C# development skills with ten transformative tips from expert coder Walt Ritscher. Explore ways to address common challenges and adhere to best practices in this course from Learn-it Labs. Learn how to avoid race conditions using the TryGetValue method, enhance switch statements with pattern matching for more readable and efficient code, make literals more readable with underscores, and extract items from sequences using indices for cleaner data manipulation. Walt also covers how to use the discard feature to ignore return values correctly, create thread-safe immutable types, use the ImmutableList collection to manage data securely, debug and work with nested collections using SelectMany, and more. Perfect for intermediate C# developers, this course will help empower you to write cleaner, more efficient, and safer code, enhancing your professional skills to grow your career.
Skills covered
C#Tips, Tricks, & TechniquesProgramming LanguagesMicrosoftSoftware Development
Concepts
0. Introduction
- 01 - Ten tips for C# developers
- 02 - How to access the sample code on GitHub
1. Ten Tips for C# Developers
- 03 - Avoid race condition with TryGetValue method
- 04 - Better switch statements with pattern matching
- 05 - Readable literals with the underscore
- 06 - Extract items from sequence with indices
- 07 - Discard feature - The right way to ignore return values
- 08 - Be more functional with the conditional operator
- 09 - Create a thread-safe immutable type
- 10 - Use the ImmutableList collection
- 11 - Show custom debugger information
- 12 - Work with nested collections and SelectMany
Conclusion
- 13 - Next steps