Explore C# 14, .NET 10, Aspire and GitHub Copilot at THRIVE 2026!
On June 8–10, 2026, I’m busy at the THRIVE Conference with three sessions and a full-day workshop – and this at a very special tech conference location: Rimske Terme, Slovenia. THRIVE has become known...
View ArticleConverting Strings to .NET Objects – IParsable and ISpanParsable
A new feature of C# 11 allows abstract static members with interfaces. This makes it possible to define class methods to be used as a contract with a generic class implementation, e.g. using + and –...
View ArticlePrimary Constructors with C#
To reduce the syntax needed when writing C# code, C# 9 added records with primary constructors. C# 10 then added records for structs. Using C# 12 you can create classes with primary constructors. This...
View ArticleEF Core Mapping with TpH, Generic Types and Value Conversion
EF Core has powerful options to map your domain model to a relational database. In this article, I’ll show you how to use the Fluent API to configure a hierarchy of generic classes to map to a single...
View ArticleWhat’s the SynchronizationContext used for?
Creating Windows applications, UI controls are bound to the UI thread. .NET made it to different iterations with different patterns dealing with asynchronous programming. .NET 4.0 introduced the Task...
View ArticleUpgrading an ASP.NET Core Web API Project to .NET 6
Upgrading an ASP.NET Core 5 application to .NET 6, all what needs to be done is to change the project file for .NET 6, and update the NuGet packages to the new versions, and you’re done and can build...
View ArticleC# Nullable Features thru the times
Exceptions of type NullReferenceException are the most common errors with .NET applications. With C# 8, nullable reference types have been introduced to get rid of these exceptions. The new .NET 6 and...
View ArticleC# 8 Updates
For all my readers of Professional C# 7 and .NET Core 2 I’ve uploaded the new bonus chapter 6 with C# 8 updates! This bonus chapter covers these C# 8 features: Nullable reference types Using...
View ArticleHow Hello World! changed – top level statements and functions (C# 9)
C# 9 comes with many new features to enhance productivity and fix bugs. One productivity enhancement comes for small programs and learning C#: top level statements. This also allows for a new way to...
View ArticleAsync Streaming with ASP.NET Core SignalR and C# 8
ASP.NET Core SignalR version 2.1 offers streaming from the server to the client. Using ASP.NET Core 3.0, streams can also …
View ArticleAlignment with C# 8 Switch Expressions
Recently I’ve written two blog articles about the new C# 8 switch expression. I’ve changed my last blog article to …
View ArticleChanging State with the Switch Expression (C# 8)
A previous blog article on moving from the switch statement to the C# 8 switch expression led to some comments …
View ArticleMoving from the switch statement to switch expressions (C# 8)
Switch expressions and enhanced pattern matching are great new concepts working together with C# 8. I’ve already written some blog …
View Article.NET Core at the Thrive Conference in Slovenia
This time the Thrive Conference in Slovenia celebrates 10 years! This time the conference is located in Postojna, at a …
View ArticleExplicit Interface Implementation with C#
With C#, interfaces can be implemented implicitly or explicitly. With implicit interface implementations, the members of the interface are public …
View ArticleUsing, using, using with C# 8
C# has different meanings for the using keyword. One is the using directive to import types from namespaces, and to …
View ArticleAsync Streams with C# 8
One of the many great features of C# 8 is async streams. Before C# 8, you could use the await …
View ArticleSlides and Source Code for Thrive Conference in Ljubljana, 2018
Slides and source code for my C# 7 & 8 and Blazor sessions at the thrive conference in Ljubljana
View ArticlePresentations and Source Code for BASTA! in Mainz, 2018
I had some great days at BASTA! in Mainz, Germany - with three presentations. Thank you for attending my presentations! I hope to see you next year again! My presentations and source code is now...
View Article