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

---
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., a cow, sheep, or pig) as a single strongly typed value....
canonical: https://daily.dev/posts/what-s-the-coolest-thing-coming-in-the-next-version-of-c--nnngqtylf
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., a cow, sheep, or pig) as a single strongly typed value....
og:url: https://daily.dev/posts/what-s-the-coolest-thing-coming-in-the-next-version-of-c--nnngqtylf
og:image: https://api.daily.dev/og/posts/NnNgqtylF.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., a cow, sheep, or pig) as a single strongly typed value. Switch statements will be aware of the possible types, giving compile-time safety when narrowing. The feature is already available in preview via the latest Visual Studio or VS Code, with the full C# 15 release expected in November.

## Full article

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

## Questions this post answers

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

Union types in C# 15 let developers define a strongly typed value that can be one of several unrelated types, such as a cow, sheep, or pig, without needing a common base type or interface. Switch statements on a union type are aware of the exact set of possible types, giving compile-time exhaustiveness and type safety when handling closed sets of types.

_Developers tracking new C# language features can follow union types coverage on daily.dev._

### When is C# 15 being released and can I try union types now?

C# 15 is expected to be released in November, but a preview of the language and compiler is already available. Developers can try union types now using the latest Visual Studio or VS Code with the preview C# compiler installed.

_Anyone planning a C# upgrade can keep an eye on daily.dev for release timing details._

## 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#), [#language-design](https://daily.dev/tags/language-design)

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

```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--nnngqtylf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-s-the-coolest-thing-coming-in-the-next-version-of-c--nnngqtylf"},"datePublished":"2026-08-27T16:12:01.331Z","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., a cow, sheep, or pig) as a single strongly typed value....","image":"https://i.ytimg.com/vi/iHq2J6ixi7s/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/iHq2J6ixi7s/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--nnngqtylf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":".net,c#,language-design","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., a cow, sheep, or pig) as a single strongly typed value....","thumbnailUrl":"https://i.ytimg.com/vi/iHq2J6ixi7s/sddefault.jpg","uploadDate":"2026-08-27T16:12:01.331Z","duration":"PT1M","url":"https://api.daily.dev/r/NnNgqtylF","embedUrl":"https://www.youtube.com/embed/iHq2J6ixi7s"}}
{"@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--nnngqtylf#faq","mainEntity":[{"@type":"Question","name":"What are union types in C# 15?","acceptedAnswer":{"@type":"Answer","text":"Union types in C# 15 let developers define a strongly typed value that can be one of several unrelated types, such as a cow, sheep, or pig, without needing a common base type or interface. Switch statements on a union type are aware of the exact set of possible types, giving compile-time exhaustiveness and type safety when handling closed sets of types. Developers tracking new C# language features can follow union types coverage on daily.dev."}},{"@type":"Question","name":"When is C# 15 being released and can I try union types now?","acceptedAnswer":{"@type":"Answer","text":"C# 15 is expected to be released in November, but a preview of the language and compiler is already available. Developers can try union types now using the latest Visual Studio or VS Code with the preview C# compiler installed. Anyone planning a C# upgrade can keep an eye on daily.dev for release timing details."}}]}
```

