What’s new in C# 13 | BRK186

Published 2024-05-27
Join Mads and Dustin as they show off a long list of features and improvements coming in C# 13. This year brings long-awaited new features like extensions and field access in auto-properties, as well as a revamped approach to breaking changes to ensure cleaner language evolution in years to come. Additionally, we take collection expressions to the next level by facilitating dictionary creation and opening params to new collection types.

To learn more, please check out these resources:
* aka.ms/Build24Collections-DevTools
* learn.microsoft.com/dotnet/csharp/whats-new/csharp…
* github.com/dotnet/roslyn/blob/main/docs/Language%2…
* github.com/dotnet/csharplang


𝗦𝗽𝗲𝗮𝗸𝗲𝗿𝘀:
* Dustin Campbell
* Kathleen Dollard
* Cyrus Najmabadi
* Jared Parsons
* Fred Silberberg
* Mads Torgersen


𝗦𝗲𝘀𝘀𝗶𝗼𝗻 𝗜𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
This video is one of many sessions delivered for the Microsoft Build 2024 event. View the full session schedule and learn more about Microsoft Build at build.microsoft.com/

BRK186 | English (US) | Developer Tools


#MSBuild

All Comments (21)
  • @krss6256
    That example with extension types with Json is so great! Really show how amazing is this feature.
  • @mertsch
    Incredible features! Yes, PLEASE break things to make the language better! I rather have some (fixable) breaks, than having to re-adjust to legacy code all the time.
  • Giving compiler warnings and hints when the language is added upon is great. Imo, not particularly disruptive and the language as a whole will benefit
  • @canabale
    You couldn't have picked better features for this next C# version. Very happy with what i am seeing here. Keep up the great work! :)
  • @Hewtoob
    Excited about Extensions 😍😍😍😍😍😍 and what a nifty side effect to use explicit extensions instead of using aliases. 👏👏👏👏
  • @lost-prototype
    I should have attended this one while I was there and asked them about union types! ;D
  • @DocuFlow
    Excellent! Thanks guys. Love the excitement you have for the framework. One of us! I just wish JSON was a first class type safe dynamic/dictionary type thing that runs off schemas/annotations so all this stuff just happens.
  • @zahir2342
    I wish we will eventually be able to implement an interface "for" a sealed type or a value type, and use that implementation in generic context without additional overhead.
  • @DennisJ42
    Wow! Finally got extension types! Exciting stuff!
  • @rustkitty
    He just casually throws in the possibility of extension operators in a future version near the end! What a tease!
  • @viccie211
    Those extensions seem very awesome!
  • @austinbryan6759
    Man I've been following extension everything for like 6 years now, since C# 8. Finally its getting added!
  • @krss6256
    By the way, is the explicit extension on 'object' an implementation of a 'shape' concept?
  • @Alguem387
    If i extend multiple types with the same extension name how does it resolve in the caller? Will it work kinda like a rust trait or will it be an error
  • @evarlast
    I just love these two presenters.