CSharp

Write cleaner code with C# 14's null-conditional assignment operator

Write cleaner code with C# 14's null-conditional assignment operator

ℹ️This post was originally published on the Telerik Developer Blog. When looking at the C# 14 updates coming out soon, I discovered a feature and thought, "how did this not already exist?" If you've been using C#'s null-conditional operators (?. and ?[]) for years like

Dave Brock
Dave Brock
APIs
Parsing Santa's workshop with strongly typed data (without the coal)

Parsing Santa's workshop with strongly typed data (without the coal)

This is my post for the 2025 C# Advent. Check out all the great posts! Every year, Santa's workshop runs on data: delivery manifests, elf schedules, chimney dimensions, and naughty/nice scores. And like any other legacy system, it's held together with strings, DateTime comparisons, and

Dave Brock
Dave Brock
ASP.NET Core
Extension Properties: C# 14's Game-Changing Feature for Cleaner Code

Extension Properties: C# 14's Game-Changing Feature for Cleaner Code

This post was originally published on the Telerik Developer Blog. Since C# 3 dropped in 2007, C# developers have been using extension methods to add functionality to types without touching their source code. Whether you're extending types from the .NET BCL, third-party libraries, or even your own legacy

Dave Brock
Dave Brock
ASP.NET Core
Exploring C# 10: Global Using Declarations

Exploring C# 10: Global Using Declarations

Let's explore global using directives in C# 10, a nice way to make your namespaces available throughout your project.

Dave Brock
Dave Brock
CSharp
Exploring C# 10: Save Space with File-Scoped Namespaces

Exploring C# 10: Save Space with File-Scoped Namespaces

In this post, let's explore file-scoped namespaces in the new version of C#, C# 10.

Dave Brock
Dave Brock
CSharp
Instant Feedback Is Here: Introducing Hot Reload in .NET 6

Instant Feedback Is Here: Introducing Hot Reload in .NET 6

With .NET 6 Preview 3, you can use hot reloading with your ASP.NET Core apps.

Dave Brock
Dave Brock
Blazor
Use C# to upload files to a GitHub repository

Use C# to upload files to a GitHub repository

In this post, let's use the Octokit library to use C# to upload files to a GitHub repository.

Dave Brock
Dave Brock
CSharp
How to use configuration with C# 9 top-level programs

How to use configuration with C# 9 top-level programs

In a C# 9 deep dive, we talk about how top-level programs work with status codes, async, arguments, and local functions.

Dave Brock
Dave Brock
CSharp