#CSharp15
I thought of a good real world case for union types and decided to give them a try

www.damirscorner.com/blog/posts/2...

#csharp15 #csharp #dotnet
Model variable JSON field types with unions
A while back I wrote a blog post about deserializing a JSON with a field of a variable type in .NET. At that time I used a custom serializer to achieve that. This scenario seems like a good fit for un...
www.damirscorner.com
September 25, 2026 at 6:26 AM
C# 15 brings Labeled break and continue. In @visualstudio.com you can use the 'Use labeled jump statement' refactoring to fix a goto.

#csharp #csharp15
September 2, 2026 at 10:39 AM
C#15.0を試すためにDev Containersを使う【VSCode】
https://zenn.dev/inuinu/articles/csharp15-with-dev-container
C#15.0を試すためにDev Containersを使う【VSCode】
zenn.dev
April 19, 2026 at 10:45 AM
I had a hard time getting extension indexers to work until I figured out they aren't supported for strings

www.damirscorner.com/blog/posts/2...

#csharp15 #csharp #dotnet
Indexer extension members in C# 15
Last year, extension members were the biggest new feature of C# 14. I wrote about them in detail in multiple blogposts. This year, extension indexers are being added to C# 15 which didn't make it into...
www.damirscorner.com
September 11, 2026 at 6:26 AM
I took a closer look at how union types are implemented and how I could implement a custom one myself

www.damirscorner.com/blog/posts/2...

#csharp15 #csharp #dotnet
Custom union types in C# 15
In the previous blog post I explored what union types bring to C#. But what does the compiler do under the hood? And do I need to know about that to fully take advantage of union types?
www.damirscorner.com
August 28, 2026 at 9:21 AM
🚀 C# 15 kommt.

@christiannagel.com zeigt auf der #bastacon, was nach C# 14 zählt:

🧩 Union Types
🔍 Pattern Matching
⚡ Runtime Async

📅 28.09. - 02.10.2026 | BASTA! |📍Mainz

🔗 https://tinyurl.com/5h93vkey

#dotnet #csharp #CSharp15 #SoftwareDevelopment
May 1, 2026 at 2:03 PM
Closed class hierarchies in C# 15 improve switch expression exhaustiveness checking

www.damirscorner.com/blog/posts/2...

#csharp15 #csharp #dotnet
Closed class hierarchies in C# 15
The release of C# 15 is getting closer and its new features started to show up in the .NET 11 previews. That's a good time for me to take a closer look at what to expect. I'm starting with closed clas...
www.damirscorner.com
August 14, 2026 at 6:41 AM
https://zenn.dev/inuinu/articles/csharp15-with-dev-container
VSCodeのDev Containersで、PCにSDKを入れずC#15を試せます。
`.devcontainer`で.NET 11 previewのコンテナを使い、C#拡張もプレリリース版にします。
必要な拡張をコンテナ側に入れれば、環境を汚さず開発できます。
C#15.0を試すためにDev Containersを使う【VSCode】
zenn.dev
April 20, 2026 at 6:20 AM
As I was reading about labeled break and continue statements in C# 15, I realized I probably never used a goto statement in C#

www.damirscorner.com/blog/posts/2...

#csharp15 #csharp #dotnet
Labeled break and continue statements in C# 15
Goto statements have been a part of C# since the very first version, but at least I haven't seen them being used very often. In C# 15, labels can also be used in combination with continue and break st...
www.damirscorner.com
September 18, 2026 at 6:26 AM
Not out of a method, only a loop. It replaces the 'good old' goto statement.

I will use it to break or continue a nested loop.

#csharp15
September 3, 2026 at 7:45 AM
Union types will be introduced in C# 15. Are you also creating your unions readonly? This can avoid defensive copies. Not sure if it is a big deal though.

#charp #csharp15
September 3, 2026 at 7:48 AM
🧩 C# 15 macht Schluss mit Rückgabetyp-Klimmzügen

@dotnetdoktor.bsky.social zeigt, wie #UnionTypes funktionieren:
🔀 mehrere mögliche Typen
🎯 Pattern Matching
🛠️ saubere Ergebnis- & Fehlerfälle

👉 https://tinyurl.com/49mr9u7e

#CSharp #dotnet #CSharp15 #SoftwareDevelopment #Programming #bastacon
C# 15.0 Union Types: Discriminated Unions erklärt
Union Types in C# 15.0 erklärt: Syntax, Pattern Matching, Voraussetzungen und Praxisbeispiel für Discriminated Unions.
tinyurl.com
August 24, 2026 at 1:02 PM
Union types are an alternative to closed class hierarchies in C# 15 when dealing with unrelated classes

www.damirscorner.com/blog/posts/2...

#csharp15 #csharp #dotnet
Union types in C# 15
Continuing with the topic of switch expression exhaustiveness in C# 15, I chose union types as the next new language feature to explore.
www.damirscorner.com
August 21, 2026 at 6:21 AM
C# 15+の新DIパターン: 内部はinterfaceで疎結合、公開APIはunionで型の許容範囲を制御
https://zenn.dev/inuinu/articles/csharp15-new-di-interface-union-closed
C# 15+の新DIパターン: 内部はinterfaceで疎結合、公開APIはunionで型の許容範囲を制御
zenn.dev
August 9, 2026 at 1:21 PM