What if you could group unrelated types together without an inheritance hierarchy? Dustin Campbell and Mads Torgersen explore C# unions: msft.it/63322as6DA
msft.itEverything You Need to Know About the Latest in C#Union types are coming to C#! Unions model closed sets of data shapes, as commonly seen in e.g. wire protocols. Mads and Dustin explore the clean expression of intent and the confidence and elegance that unions lend to consuming code. We'll also take a look at other recent and upcoming C# features, such as extension members and closed classes.
You will learn:
Find out what's coming to the next version of C#
How to express closed sets of types with unions
How to add new members to existing types with extension members
Connect with .NET:
Blog: https://msft.it/63328as6Ds
Twitter: https://msft.it/63322as6Da
TikTok: https://msft.it/63323as6Dx
Mastodon: https://msft.it/63325as6DL
LinkedIn: https://msft.it/63326as6D0
Facebook: https://msft.it/63327as6DF
Docs: https://msft.it/63328as6D2
Forums: https://msft.it/63329as6DN
🙋♀️Q&A: https://msft.it/63320as6D4
👨🎓Microsoft Learn: https://msft.it/63321as6Df
#dotnet
0 reposts0 likes