languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2703 articles Updated
C# work shows up across many DotNetNews issues because teams keep hitting the same implementation questions. C# is a recurring focus for C# and .NET developers working in the Microsoft ecosystem.
Recurring subtopics in recent issues include C# articles and tutorials, C# language, C# features, and C# patterns. When a subtopic never appears in the archive titles or excerpts, it is left out of this introduction.
Expect publisher tutorials, release notes, architecture write-ups, and field notes linked from DotNetNews issues. Start here is a short editorial shortlist for C#; the archive list is chronological and larger. Secondary angles such as C# articles and tutorials and C# language appear when the archive actually covered them. Cross-links to .NET 10 and C# Source Generators help when the problem spans more than one tag.
Each card points at the original publisher URL and the DotNetNews issue that carried it, so you can read the article in context or jump straight to the source.
Start here
Editor picks for C#
-
Factory Pattern C#
C# Corner Issue #369
Factory Pattern basics are covered in a straightforward way for readers who want a refresher on object creation tradeoffs.
-
Partial Events and Constructors in C# 14 (.NET 10) Explained with Examples
C# Corner Issue #365
Explore C# 14's partial events & constructors!
-
IEnumerable vs IQueryable in C# — What Every .NET Developer Should Know
Medium Issue #236
https://medium.com/@karthikns999/ienumerable-vs-iqueryable-3643756013b4?source=rss------csharp-5.
-
Local AI + .NET = AltText Magic in One C# Script
Microsoft Dev Blogs Issue #236
A fun local AI script demo that shows practical .NET + models usage.
-
Using Pattern Matching in C# for Performance Optimization
Meziantou's blog Issue #210
Pattern matching isn't just cleaner here; it's being used to squeeze real performance wins.
-
Use C# 14 extensions to simplify enum Parsing
Meziantou's blog Issue #199
Enum parsing gets a cleaner treatment here, which is exactly the sort of small improvement that adds up.
-
Why we built our startup in C#
Microsoft Dev Blogs Issue #195
The startup-in-C# story is always interesting because it shows what the language buys real teams.
-
The Hidden Power of init in C# — How to Make Your Objects Immutable, But Flexible
Medium Issue #194
The init keyword gets a focused treatment here, especially for immutable objects that still need flexibility.
Archive
Page 1 of 109
Newest first
-
Microsoft.UI.Reactor: a C#-first way to build WinUI apps
Microsoft Dev Blogs Issue #574
If you caught our session at Microsoft Build 2026 or you've been watching the repo, you've seen this one taking shape in public for a while now, and a lot has changed since Build. Here's the longer to...
-
C# 15 Union Types for API Results: Examples, Trade-Offs, and Migration
Medium Issue #574
Learn how C# 15 union types simplify ASP.NET Core API results, compare with existing C# patterns, and help you decide when to adopt them.Continue reading on Syncfusion »
-
C# 15 Union Types: Examples, Exhaustive Switch and Gotchas
Medium Issue #574
Last updated: October 22, 2026 · Tested with .NET 11 RC2 (SDK 11.0.100-rc.2.26504.105, C# 15) and the .NET 10.0.12 runtime
-
Upgrading to .NET 11: 9 Breaking Changes and Fixes
Medium Issue #574
Last updated: October 24, 2026 · Tested with .NET 11 RC2 (SDK 11.0.100-rc.2.26504.105) against .NET 10.0.12 (SDK 10.0.401), Windows 11
-
How to Read CBOR Data Incrementally in .NET 11
C# Corner Issue #574
Learn how to read CBOR data incrementally in .NET 11 with CborReader, handle partial input safely, preserve parsing state, and continue when more data arrives.
-
C# Cancellation Tokens: Carry the Signal to the Work
Medium Issue #573
Why closing a progress screen can leave its operation running
-
How to Test Post-Quantum Key Exchange APIs in .NET 11
C# Corner Issue #573
Learn how to test ML-KEM key encapsulation and decapsulation in .NET 11, including shared-secret verification, key import, invalid-input handling, and cross-platform support.
-
How to Remove Duplicate Rows in Excel Using C#
Medium Issue #573
Data cleaning is a common requirement in C# development, and removing duplicate rows in Excel is one of the most frequent tasks. In the C#…
-
Your Aspects, Faster: Advice Parameter Binding in PostSharp 2027.0
PostSharp Blog Issue #573
Every
ASP.NET Core .NET Aspire Azure -
C# Concepts Every .NET Backend Developer Should Know in 2026
Medium Issue #573
A .NET API can feel perfectly fine with a little traffic and then start struggling as the app grows. Queries get slower, outgoing HTTP…
-
What Runtime Async in .NET 11 Changes for C# Developers
C# Corner Issue #573
Explains how async and await work in C# and how to evaluate .NET 11 runtime changes, including tasks, continuations, cancellation, and migration testing.
-
Async/Await in C#: The Mental Models That Finally Made It Click
Medium Issue #573
When I started learning async and await in C#, I understood the syntax.
-
Claude Fable 5.1 vs GPT-6 Astra: HTML to PDF in C# (.NET 10)
codewithmukesh Issue #572
I gave Claude Fable 5.1 and GPT-6 Astra the same invoice prompt, rendered all 10 templates with IronPDF on .NET 10 and scored them in C#. Both passed, and one print CSS rule was the only real differen...
-
Software Architecture in .NET C#: Shaping applications that survive change
Medium Issue #571
Every application has an architecture. The only question is whether someone chose it, or whether it simply happened, one urgent feature at…
-
Why I Built a Multi-Paxos Library for .NET
Medium Issue #571
Inside a Multi-Paxos Library — Part 1: turning agreement, application state, and failure into explicit architectural boundaries.
-
Bring Your Own Model to the GitHub Copilot SDK with C#
Microsoft Dev Blogs Issue #571
Hi, I know, I keep coming back to the same theme on this blog: agent harnesses. In Build Your Own AI Agent Harness in C# we built one from scratch. In
-
From Throwing Exceptions to the Result Pattern
Medium Issue #571
Seven attempts at API error handling, and the one that stayed.
-
SOLID Principles in C#: A Beginner-Friendly Guide with Real-World Examples
Medium Issue #570
💥 𝗪𝗿𝗶𝘁𝗶𝗻𝗴 𝗰𝗹𝗲𝗮𝗻 𝗰𝗼𝗱𝗲 𝗶𝘀𝗻’𝘁 𝗷𝘂𝘀𝘁 𝗮𝗯𝗼𝘂𝘁 𝗺𝗮𝗸𝗶𝗻𝗴 𝗶𝘁 𝘄𝗼𝗿𝗸 — 𝗶𝘁’𝘀 𝗮𝗯𝗼𝘂𝘁 𝗺𝗮𝗸𝗶𝗻𝗴 𝗶𝘁…
-
An introduction to Compact Binary Object Notation (CBOR) in .NET
Andrew Lock | .NET Escapades Issue #570
In this post I introduce CBOR as a JSON alternative, and show how to use the System.Formats.Cbor NuGet package to read and write CBOR encoded data
-
Microsoft Shows C# Developers How to Bring Their Own Models to GitHub Copilot SDK
Visual Studio Magazine Issue #570
A new .NET sample demonstrates how developers can use Microsoft Foundry or other AI model providers with GitHub Copilot's agent runtime.
-
.NET: I didn’t write this Excel formula engine. Here is why I trust it anyway
Medium Issue #570
Disclosure: SharpCell’s code was written by Claude Code, with me directing it. This article was drafted with Claude too, and edited by me…
-
Understanding CancellationToken in C# and ASP.NET Core Web API
C# Corner Issue #570
Learn how to use CancellationToken in ASP.NET Core Web API to stop abandoned requests, cancel EF Core queries, and handle request cancellation efficiently.
-
Building Real-Time App in .NET with REPR
C# Corner Issue #570
Building Real-Time App in .NET with REPR WebSockets.Otp is inspired by REPR (Request-Endpoint-Response) principles and trying to bring the same elegance from Minimal APIs, FastEndpoints, or MediatR to...
-
Free Web Search for AI Agents: Scraping Bing with C# HttpClient (No API Key Needed)
Medium - Donma Hsu 當麻許 Issue #569
I’ve been working on my Web Agent lately and wanted to set up a free Web Search fallback.