5 Tips and potential MISTAKES that you SHOULD know about, for C# and .NET



5 Tips and potential MISTAKES that you SHOULD know about, for C# and .NET

5 Tips and potential MISTAKES that you SHOULD know about, for C# and .NET

Become a Patreon and get source code access: https://www.patreon.com/nickchapsas
Check out my courses: https://dometrain.com

Timestamps:
00:36 Async Actions are not awaited
03:30 Making GetOrAdd in ConcurrentDictionary thread-safe
09:58 Clean way to have InternalsVisibleTo for testing
14:17 Auto-implemented property vs expression-bodied members
18:15 Using LINQ with different collection types

Hello everybody I’m Nick and in this video we will take a look at 5 Tips and potential mistakes that you should know about for C# and .NET. Knowing and applying these will improve the quality of your code, your understanding of the compiler and how your code runs in the CLR and it will make you a better C# programmer.

Making ConcurrentDictionary GetOrAdd thread safe using Lazy by Andrew Lock: https://andrewlock.net/making-getoradd-on-concurrentdictionary-thread-safe-using-lazy/

Don’t forget to comment, like and subscribe 🙂

Social Media:
Follow me on GitHub: http://bit.ly/ChapsasGitHub
Follow me on Twitter: http://bit.ly/ChapsasTwitter
Connect on LinkedIn: http://bit.ly/ChapsasLinkedIn

#aspnetcore #tips #code

Comments are closed.