C# 10 Features You Need to Know About

James Montemagno

There are so many features in C# 10 that I have fallen completely in love with that help simplify source code and make development even more enjoyable. I break down my favorite features that you will actually use every day when developing apps with .NET 6. Not targeting .NET 6 yet? Don’t worry, I will show you how to use C# 10 features in your older projects too!

👕 Buy some swag! – https://jamesmontemagno.myspreadshop.com/

Chapters:
00:00 – Introduction
00:50 – record class, record struct, struct updates
03:00 – File-scoped namespaces
04:34 – Global & Implicit usings
08:22 – Project specific implicit usings
09:46 – New lambda expression improvements
11:40 – Enabling C# 10 in older projects
13:50 – Wrap-up

Links:
Source code: https://github.com/DustinCampbell/dotnetconf-2021
Docs: https://docs.microsoft.com/dotnet/csharp/whats-new/csharp-10
Mads & Dustin – https://www.youtube.com/watch?v=dfzBMxXQUOc

☕️ Buy me a coffee – https://www.buymeacoffee.com/jamesmontemagno

Disclaimer: This channel, videos, and streams are created in my spare time and are a product of me… James Montemagno! They are NOT officially affiliated or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.

Follow:
👨‍💻 GitHub: https://github.com/jamesmontemagno
🦜 Twitter: https://twitter.com/jamesmontemagno
🔴 Twitch: https://twitch.tv/jamesmontemagno
📄 Website: https://www.montemagno.com
📰 Newsletter: https://newsletter.montemagno.com/

What is on my hat? It is the CLE clothing logo because I am from Cleveland! Checkout their awesome CLE merch: https://cleclothingco.myshopify.com/

What is that art on my wall? It is an original piece from the French street artist Gregos of La Butte Montmartre: https://www.instagram.com/p/BceZ1oNHiQx/

My Setup:
🎙 Blue Spark Microphone – https://amzn.to/3qgtYkq
🎙 Blue Pop Filter – https://amzn.to/3jEWM3r
🤳 Rode Microphone Arm – https://amzn.to/2Z68AlE
🎧 Sony MDR7306 Headphones – https://amzn.to/372jxta
📲 Stream Deck – https://amzn.to/373Uk1n
📹 Elgato Cam Link – https://amzn.to/3a9eGbh
📷 GoPro Hero – https://amzn.to/374lm90
🖱 MX Master 2S Mouse – https://amzn.to/3d7J2gj
⌨️ Tecware Phantom Keyboard – https://amzn.to/3aUP4y9

#csharp10 #dotnet6 #csharp #dotnet