<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-s-the-coolest-thing-coming-in-the-next-version-of-c--nc3ezwcsz" -->

---
title: What's the coolest thing coming in the next version of C#?
description: C# 15 will introduce union types, letting developers express a closed set of unrelated types (e.g., cow, sheep, or pig) in a strongly typed way. Switch...
canonical: https://daily.dev/posts/what-s-the-coolest-thing-coming-in-the-next-version-of-c--nc3ezwcsz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What's the coolest thing coming in the next version of C#? | daily.dev
og:description: C# 15 will introduce union types, letting developers express a closed set of unrelated types (e.g., cow, sheep, or pig) in a strongly typed way. Switch...
og:url: https://daily.dev/posts/what-s-the-coolest-thing-coming-in-the-next-version-of-c--nc3ezwcsz
og:image: https://api.daily.dev/og/posts/NC3EZWcsz.png
og:image:alt: What's the coolest thing coming in the next version of C#?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# What's the coolest thing coming in the next version of C#?

**[Microsoft Developer](https://daily.dev/sources/microsoftdeveloper)** · 1 min read · 0 upvotes · 0 comments

## Summary

C# 15 will introduce union types, letting developers express a closed set of unrelated types (e.g., cow, sheep, or pig) in a strongly typed way. Switch statements will be aware of the union's possible types. C# 15 ships in November, but a preview is already available in the latest Visual Studio or VS Code with the preview compiler.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=-vFBqPiUWdk>

## Questions this post answers

### What are union types in C# 15?

Union types in C# 15 let you express a closed set of unrelated types as a single strongly typed value, such as a type that can only be a cow, a sheep, or a pig. You can create union values from the underlying types, and switch statements on a union type are aware of exactly which types can come out, giving compile-time safety for closed sets of possibilities.

_Track new C# 15 language features like this on daily.dev before they hit general availability._

### When is C# 15 releasing and can I try it now?

C# 15 is scheduled to ship in November, but a preview of the language and compiler is already available. You can try it out today using the latest Visual Studio or VS Code with the preview compiler enabled.

_Developers evaluating early previews of C# 15 can follow release timing updates on daily.dev._

## Similar posts on daily.dev

- [Explore union types in C\# 15](https://daily.dev/posts/explore-union-types-in-c-15-oygraauhf) · DevBlogs · 64 upvotes · 3 comments
- [From C\# 1.0 to C\# 15: Why Union Types Took More Than 20 Years to Arrive](https://daily.dev/posts/from-c-1-0-to-c-15-why-union-types-took-more-than-20-years-to-arrive-ipitz7zry) · Medium · 16 upvotes · 0 comments

---

Tags: [#.net](https://daily.dev/tags/.net), [#c#](https://daily.dev/tags/c#), [#visual-studio](https://daily.dev/tags/visual-studio)

[View this post on daily.dev](https://daily.dev/posts/what-s-the-coolest-thing-coming-in-the-next-version-of-c--nc3ezwcsz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"What's the coolest thing coming in the next version of C#?","url":"https://daily.dev/posts/what-s-the-coolest-thing-coming-in-the-next-version-of-c--nc3ezwcsz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-s-the-coolest-thing-coming-in-the-next-version-of-c--nc3ezwcsz"},"datePublished":"2026-08-27T16:12:01.644Z","dateModified":"2026-08-28T09:23:40.313Z","description":"C# 15 will introduce union types, letting developers express a closed set of unrelated types (e.g., cow, sheep, or pig) in a strongly typed way. Switch...","image":"https://i.ytimg.com/vi/-vFBqPiUWdk/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/-vFBqPiUWdk/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Microsoft Developer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Microsoft Developer","logo":"https://media.daily.dev/image/upload/s--xZzU3zUq--/f_auto/v1746714872/logos/microsoftdeveloper","url":"https://daily.dev/sources/microsoftdeveloper"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/what-s-the-coolest-thing-coming-in-the-next-version-of-c--nc3ezwcsz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":".net,c#,visual-studio","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"What's the coolest thing coming in the next version of C#?","description":"C# 15 will introduce union types, letting developers express a closed set of unrelated types (e.g., cow, sheep, or pig) in a strongly typed way. Switch...","thumbnailUrl":"https://i.ytimg.com/vi/-vFBqPiUWdk/sddefault.jpg","uploadDate":"2026-08-27T16:12:01.644Z","duration":"PT1M","url":"https://api.daily.dev/r/NC3EZWcsz","embedUrl":"https://www.youtube.com/embed/-vFBqPiUWdk"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Microsoft Developer","item":"https://daily.dev/sources/microsoftdeveloper"},{"@type":"ListItem","position":3,"name":"What's the coolest thing coming in the next version of C#?"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/what-s-the-coolest-thing-coming-in-the-next-version-of-c--nc3ezwcsz#faq","mainEntity":[{"@type":"Question","name":"What are union types in C# 15?","acceptedAnswer":{"@type":"Answer","text":"Union types in C# 15 let you express a closed set of unrelated types as a single strongly typed value, such as a type that can only be a cow, a sheep, or a pig. You can create union values from the underlying types, and switch statements on a union type are aware of exactly which types can come out, giving compile-time safety for closed sets of possibilities. Track new C# 15 language features like this on daily.dev before they hit general availability."}},{"@type":"Question","name":"When is C# 15 releasing and can I try it now?","acceptedAnswer":{"@type":"Answer","text":"C# 15 is scheduled to ship in November, but a preview of the language and compiler is already available. You can try it out today using the latest Visual Studio or VS Code with the preview compiler enabled. Developers evaluating early previews of C# 15 can follow release timing updates on daily.dev."}}]}
```

