languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2334 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-sharpcorner.com 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-sharpcorner.com Issue #365
Explore C# 14's partial events & constructors!
-
IEnumerable vs IQueryable in C# — What Every .NET Developer Should Know
medium.com Issue #236
https://medium.com/@karthikns999/ienumerable-vs-iqueryable-3643756013b4?source=rss------csharp-5.
-
Local AI + .NET = AltText Magic in One C# Script
devblogs.microsoft.com Issue #236
A fun local AI script demo that shows practical .NET + models usage.
-
Using Pattern Matching in C# for Performance Optimization
meziantou.net 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.net 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#
devblogs.microsoft.com 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.com Issue #194
The init keyword gets a focused treatment here, especially for immutable objects that still need flexibility.
Archive
Page 1 of 94
Newest first
-
You don't need to create all properties inside a DTO to successfully deserialize
c-sharpcorner.com Issue #504
Short example on JSON serialisation aimed to combat excessive use of JObjects
-
C# ToString(), operators and indexers - Are you using these?
roundthecode.com Issue #504
Learn how to override ToString(), overload operators and use indexers in C# classes, featuring examples of addition and subtraction. The page C# ToString(), operators and indexers - Are you using thes...
-
Building an AI-Powered Knowledge Base Using Vector Databases and C#
c-sharpcorner.com Issue #504
Build AI-powered knowledge bases with C# & vector databases for semantic search, understanding user intent & delivering accurate, context-aware answers.
-
RAG explained in C#
medium.com Issue #504
Retrieval-Augmented Generation (RAG) combines a large language model (LLM) with search over your own knowledge base. Instead of only…
-
SOLID Principles Explained with C# Examples (Simple + Interview-Friendly)
medium.com Issue #504
Introduction
-
Handling Timeouts in C# like a pro
truestorydavestorey.medium.com Issue #504
I’ve been a software engineer for approximately 20 years, and during that time there’s been one recurring theme that has always surprised…
-
LINQ in C#: The Complete Beginner's Guide with Practical Examples (Part 2)
medium.com Issue #504
Understanding Single(), SingleOrDefault(), Last(), and LastOrDefault()
-
Building a Database in a Text File — Why Async Is Not Enough
medium.com Issue #503
The Idea Behind This Series
-
How do you design immutable classes in C#?
medium.com Issue #503
Designing immutable classes in C# means creating objects whose state can’t change after construction
-
Understanding Garbage Collector and Finalizers in C#
wiemksaier.medium.com Issue #503
When we write code in C#, we create objects all the time.
-
IEnumerable vs IQueryable: Ask this question first
medium.com Issue #502
While searching differences between IEnumerable vs IQueryable, we generally find below explanation : Continue reading on Women in Technology »
-
Your Try-Catch Blocks Are Lying to You
medium.com Issue #502
Exceptions aren’t free, and neither is treating every failure like one. Here’s how I split the two, and where I draw the line.
-
Concat Costs
medium.com Issue #501
String concatenation with + is fine for one line, but in loops or dynamic UI it forces the garbage collector to work overtime…
-
The C# 14 field Keyword Looks Like Free Cleanup. It Can Still Break Your EF Core Mapping
c-sharpcorner.com Issue #501
C# 14 field keyword can break EF Core backing-field mapping and reflection code. Learn the risk and how to check your codebase first.
-
LINQ in C#: Skip(), SkipWhile(), Take(), and TakeWhile() More Than Just Paging Defining Domain…
medium.com Issue #501
Paging, Windows, and Domain Boundaries
-
ML.NET — Machine Learning Without Leaving .NET
medium.com Issue #500
Most .NET developers I’ve spoken to hit the same wall. The project needs something predictive — maybe flagging bad input, maybe ranking…
-
Building AI Workflows with Semantic Kernel Process Framework in .NET
c-sharpcorner.com Issue #500
Build structured AI workflows in .NET with Semantic Kernel's Process Framework. Orchestrate AI, logic, tools, and human interaction for complex applications.
-
C# Tip: Use required members to prevent invalid object initialization (beware of SetsRequiredMembers attribute!)
code4it.dev Issue #500
Learn how to use required members in C# to enforce complete object initialization at compile time and avoid half-configured models. And beware of the SetsRequiredMembers attribute, which can be danger...
-
Beyond the Basics: 5 Switch Expression Patterns Every C# Developer Should Know
medium.com Issue #500
Think you’ve mastered switch expressions? These five patterns will help you write cleaner, safer, and more maintainable C# code. Continue reading on C# Snaps: Sharp Bites for Better Code »
-
Dependency Injection in .NET Explained Like You’re Building a Restaurant
medium.com Issue #500
One of the most important concepts in .NET — explained with a simple real-world analogy.
-
Building a Console-Based Vehicle Rental Management System Using N-Layer Architecture in C# and EF Core
c-sharpcorner.com Issue #500
Learn C# data management with Entity Framework Core. Set up connections, manage entities, and implement data operations for your applications.
-
Building Your First MCP Server in C#: A 2026 Field Guide
medium.com Issue #498
If you’ve touched an AI coding tool in the last year, you’ve probably run into the Model Context Protocol (MCP) even if nobody called it…
-
C# PDF Libraries: What 'Free' Really Costs You (2026 Guide) - HackerNoon
hackernoon.com Issue #498
C# PDF Libraries: What 'Free' Really Costs You (2026 Guide) HackerNoon
-
Delegates and Event in .Net (Understand in 5min)
medium.com Issue #498
Many .NET developers learn about Delegates and Events, yet struggle to explain their practical applications in real projects. Instead of…
-
Delegates in C# Explained with Simple and Real Project Examples
c-sharpcorner.com Issue #497
Master C# delegates! Learn how they decouple code, enable callbacks, and power ASP.NET Core, LINQ, and events with simple examples.