Programming on the Microsoft .NET stack with C#.

Articles:

Handling Very Large Deletes and Updates with EF

Entity Framwork is an excellent ORM tool for working with databases. However it can be problematic when dealing with millions of records if not used correctly.
4/17/2026

AI Assisted .NET Modernizations

GitHub CoPilot AI Agents can assist with the mundane task of upgrading applications to a newer version of .NET. Here I went from .NET 8 to .NET 9 using a Copilot AI Agent.
6/30/2025

Two uses for Task.CompletedTask

Although I don't use it often, I've found two uses for Task.CompletedTask
10/25/2024

Minimal API: JSON defaulting to PascalCase

So this was a bit frustrating, yet fixed with one line of code.
10/25/2024

C# Primary Constructors

New to C# 12. A concise syntax to declare constructors whose parameters are available anywhere in the body of the type.
10/21/2024

Azure DevOps - Deployments using a Publish Profile (*.pubxml)

If you already have working .pubxml files (deployed in Visual Studio), it's easy to migrate these to Azure DevOps pipelines.
6/23/2024

Simplified Sproc Calls with EF8

EF8 allows for raw SQL queries return mapped to CLR type, without including them type in the EF model. This make sproc call easier.
2/26/2024

Sending Authentication Cookies in a WPF app

WPF applications which simulate HTTP traffic at times need to handle cookie-based authentication. This is a quick recipe for cookie passing.
2/12/2024

LINQ's let keyword

LINQ comes in two flavors: Query Syntax and Method Syntax. The let keyword in Query Syntax helps keep code more readable.
12/14/2023

Quick question: The difference between an int and a struct?

Click for the answer.
8/21/2023

Dictionary.GetValueOrDefault - Wish I had that sooner...

In C#, I've always wished the Dictionary Indexer would simple return null if a key doesn't exist. The GetValueOrDefault extension is a good alternative.
7/28/2023

C# 10 Favorites

A few of my favorite C# 10 additions
8/25/2022
(See all articles...)


  • C#/.NET
  • T-SQL
  • HTML/CSS
  • JavaScript/jQuery
  • C++
  • .NET
  • ASP.NET/MVC
  • Xamarin/MAUI
  • WPF
  • Windows 11
  • SQL Server 20xx
  • Android
  • XBox
  • Arduino
  • Skiing
  • Rock Climbing
  • White water kayaking
  • Road Biking