C# 15 Preview – What’s New Before the Final Release

C# 15 is in preview with .NET 11. Explore union types, closed hierarchies, extension indexers, labeled break and more, with simple code samples.

C# 15 is in preview with .NET 11. Explore union types, closed hierarchies, extension indexers, labeled break and more, with simple code samples.

Working with Sri Lanka's administrative hierarchy in .NET used to mean piecing together scattered data. LankaLens.AdministrativeDivisions packages it into one offline, open-source NuGet package — now stable at v1.0.0.

C# 15 introduces Union Types — a simple and type-safe way to handle multiple return types. Learn how it works and how to try it with .NET 11 Preview 2.

.NET 10 introduces built-in data validation for Minimal APIs—no need for external libraries. This guide walks through Data Annotations, custom validation, and automatic error handling with real-world examples.

.NET 9 introduces powerful new LINQ methods — Index, CountBy, and AggregateBy. This guide explains each method with before-and-after examples, showing how they reduce boilerplate and make queries more readable.