Post Contenthttps://www.youtube.com/shorts/-vFBqPiUWdk
Union types. Mads Torgersen explains how C# will let you model a closed set of unrelated types, create union values from them, and switch over them in a fully strongly typed way. It lands in C# 15 this November, and there’s already a preview compiler you can try in Visual Studio and VS Code. Read More Microsoft Developer