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