languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2768 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 111
Newest first
-
Why double to decimal Conversion Changed in .NET 11 | by AT Dilakshan
Medium Issue #589
Learn why .NET 11 changes double to decimal conversion, how results differ from .NET 10, and what to check when upgrading your application.
-
Using Extension Indexers in C# Beyond Simple Property Access
C# Corner Issue #589
Learn how to create and use C# 15 extension indexers with extension blocks, including indexed access for IEnumerable collections and custom customer lookups.
-
Read an Excel File in C#: ExcelDataReader, ClosedXML, and No-Library OpenXML
Khalid Abuhakmeh Issue #589
How to read an Excel file in C#: load .xlsx and .xls into objects with ExcelDataReader, ClosedXML, ExcelMapper, or plain OpenXML, no Office or Interop.
-
Make the C# Compiler Tell You What You Forgot
Medium Issue #589
C# 15 has just been released, introducing union types and bringing sum types to the language. This gives C# developers a new way to model…
-
Why Your WinUI 3 Title Bar Looks Generic (And How to Build a Real One)
Medium Issue #589
Drag regions, clickable chrome, icons and Mica — the complete implementation, including the three bugs everyone hits.
-
Building a Local Enterprise AI Agent with Ollama, C# and MCP
Medium Issue #589
From running a local LLM to building an agent that can interact with enterprise capabilities
-
Modeling Success and Failure in C# Without Using object
C# Corner Issue #588
Learn how C# 15 union types model success and failure outcomes without returning object, using typed result cases and exhaustive pattern matching.
-
Spot the Bug: The Binary Search Line That Stayed Broken for 20 Years
Medium Issue #588
*Lessons to be a better engineer, #1*
-
Why a Slow Load Must Never Overwrite a Newer Write
Medium Issue #588
Inside a Cache Library — Part 2: ordering explicit writes against loads already in flight.
-
New Features in .NET 11 and C# 15
Medium Issue #587
.NET 11 and C# 15 is out today (November 10, 2026).Continue reading on CodeX »
-
IAsyncEnumerable
in C#: Processing Millions of Records Without Loading Everything Into Memory Medium Issue #587
Imagine your database contains 5 million records, and your API needs to process all of them.
-
State Pattern in C#: Taking the Leave Request Lifecycle Beyond Status Flags
C# Corner Issue #587
Learn how to model a leave request lifecycle in C# with the State pattern, replacing fragile status checks with state-specific behavior and testable transitions.
-
Foreground Thread vs Background Thread in C# — Understanding Thread Execution and Application…
Medium Issue #586
In C# and .NET, Foreground Threads and Background Threads are two types of threads that determine whether an application should continue…
-
C# 15 Closed Hierarchies: What Can the Compiler Prove Now?
Medium Issue #586
A bounded set of branches helps the compiler find an incomplete decision. It does not settle null handling or your extension policy.
-
Task vs ValueTask vs Thread: How They Work with Stack and Heap in C#
Medium Issue #586
To understand Thread, Task, and ValueTask deeply, we first need to understand how .NET manages memory using Stack and Heap.
-
FrozenDictionary and FrozenSet: When Read-Heavy Lookups Deserve a Different Collection
Medium Issue #586
They aren’t replacements for Dictionary and HashSet. They’re optimized for a different lifecycle: build once, read repeatedly.Continue reading on C# Snaps: Sharp Bites for Better Code »
-
.NET 11 Makes Agent Tool Outcomes Compiler-Checked
Medium Issue #586
C# 15 unions turn a tool result into a closed set of outcomes. Three small settings decide whether that contract really holds.
-
Don’t Store Money in a Float: Cents, decimal and Rounding Rules
Medium Issue #586
Why 0.1 + 0.2 is not 0.3, and how that becomes an invoice bug. How I stored money as cents, decimal and Decimal across four projects.
-
C# Reflection Has a Day Job
Medium Issue #585
Build a small invoice checker that discovers its own rules, and see exactly where the magic stops.
-
Talking to an IBM i (AS/400) from .NET: data queues, COBOL and a live web page
Medium Issue #585
If you have ever heard “AS/400” and thought “that thing from the 80s”, this article is for you. IBM i (the modern name of the AS/400) is…
-
.NET 11 is here. C# 15 finally gives us union types.
Medium Issue #585
A closer look at return types, generated SQL, and a few release details that are easy to misread.
-
AI in Software Architecture in .NET C#: Where language models belong in your application (2026)
Medium Issue #585
Imagine the e-commerce of the previous series: the order flow works, from the cart to the “Your order has been confirmed!” email. Now the…
-
C# Cheat Sheet: Modern Syntax Reference with Examples
Khalid Abuhakmeh Issue #585
A modern C# cheat sheet with copy-paste examples: types, collections, pattern matching, LINQ, async/await, records, and null handling for .NET.
-
What’s New in .NET 11 and C# 15: A Practical Guide
Medium Issue #585
Key features explained with simple before/after examples
-
What happens to a method that awaits forever?
Steven Giesel Issue #585
What happens if you await something that never finishes? Does the method sit in memory until the heat death of the universe (or all the other possible scenarios)? Does it leak? Let's find out, and the...