languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2725 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
-
Count, Prefix Sum, Fill: Unity’s C# Job System Explained Simply
Medium Issue #579
Intro: my game froze, so I learned the Job System
-
Moving PostSharp Aspects to Dependency Injection
PostSharp Blog Issue #579
PostSharp was designed when dependency injection was still ...
-
Things that bit me shipping a WinUI 3 + Native AOT app to the Microsoft Store
Medium Issue #579
Five problems I hit porting my Mac screen annotation app to Windows, and what fixed them.
-
How to Loop Through a List in C#: Every Way, Benchmarked
Khalid Abuhakmeh Issue #579
How to loop through and iterate a List
in C# with foreach, for, ForEach, Index(), and spans, plus break, continue, safe removal, and benchmarks. -
Teamwork for AI: Building Multi-Agent Workflows that Actually Talk to Each Other
C# Corner Issue #579
Think about what happens when you ask one person at a company to do everything. Imagine asking the same employee to write your backend C# code, design your marketing graphics, review your tax filings,...
-
Small .NET 10 Features Worth Using in Your Next Project
Medium Issue #578
Less manual validation, simpler queries, and small C# tools without a project file.
-
REA (Reverse Engineer Anything): What It Is, How I Used It
codewithmukesh Issue #578
What REA is, how it works, why it went viral, and how to set it up on Windows, plus the app I rebuilt with it in .NET 10 and why code is no longer the moat.
-
C# Performance: 12 Hidden Allocations That Can Hurt Your Application
Dotnet on Medium Issue #578
You don’t always see new and immediately think, "That's going to create allocation pressure." Allocations can come from LINQ, closures…Continue reading on Stackademic »
-
Primary constructors are more than syntactic sugar
Steven Giesel Issue #577
Did you know that switching from a "regular" constructor to a primary constructor can change when your fields get initialized? Let's see why that matters.
-
Can a Form Be Described Only Once?
Medium Issue #577
Full version: https://youtu.be/5WjUTwoPyGw (about 10 minutes)
-
.NET TimeProvider: Test Tomorrow Without Waiting
Medium Issue #577
Make the current instant an input, then test the boundary directly
-
Reading CBOR Data Incrementally in .NET 11
C# Corner Issue #577
Learn how to read CBOR data incrementally in .NET using System.Formats.Cbor, including handling incomplete chunks and validating streamed binary messages.
-
How to Resume a File Processing Job After a Worker Crashes
C# Corner Issue #576
Learn how to build resumable C# file-processing jobs using durable checkpoints, batch commits, idempotency, leases, and retry-safe recovery after worker crashes.
-
LINQ Performance: 7 Mistakes .NET Developers Make in Production
Medium Issue #576
LINQ makes C# code cleaner and easier to read. But some innocent-looking LINQ queries can introduce performance problems when they reach…
-
MCP Servers in C#: How They Work and How to Build One
C# Corner Issue #576
Learn how MCP servers expose tools to Claude, Copilot and ChatGPT, what the stateless 2026-07-28 spec changed, and how to build, connect and secure one in C#.
-
Intercepting Calls to Any Method with Metalama Interceptors
PostSharp Blog Issue #576
Metalama 2027.0 adds call-site interceptors. An override aspect modi...
-
How to Prevent Duplicate File Processing in a Background Worker
C# Corner Issue #576
Learn how to prevent duplicate file processing in C# background workers using reliable file identity, atomic claims, idempotency, durable status tracking, and failure recovery.
-
Claude Code for .NET Developers: A Practical Agentic Workflow
Medium Issue #575
This is Part 1 of the “Agentic Engineering for .NET Teams” series. Part 2 covers context engineering, Part 3 covers sharing state across…
-
Microsoft's Reactor Brings C#-Only UI Development to WinUI
Visual Studio Magazine Issue #575
The experimental framework uses native WinUI controls with a Model-View-Update approach, while XAML remains supported.
-
Validating References in NoSQL Databases: A Reusable C# Approach Using MongoDB
Medium Issue #575
I have encountered staff records still assigned to disabled departments.
-
Hybrid Search for RAG in .NET 10: BM25 Finds ERR-4012, Vectors Don’t
Medium Issue #575
Vectors buried exact error codes; BM25 missed 37% of paraphrases. RRF plus a reranker took MRR from 0.86 to 0.94, gated in CI, in C#.
-
How to Save Enums and Custom Types with EF Core Value Converters
C# Corner Issue #575
Learn how to use EF Core value converters to store enums as strings and map custom C# value objects to database columns.
-
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