languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2640 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 106
Newest first
-
Cancel Slow AI Calls in .NET Without Hiding the Cause
C# Corner - Ranknod Issue #559
-
File-based apps can reference other C# files
Medium - Denis Makarenko Issue #559
File-based apps can now split code across files without first creating a project.
-
C# 14 Lets You Define Your Own += Operator
Medium - Ravikumar Makwana Issue #559
We use this every day:
-
The 2 AM Bug That Taught Me How Obfuscation Actually Breaks Your Code
Medium - Skater .NET Obfuscator Issue #559
I used to think obfuscation was a “flip the switch and ship it” kind of tool. Then I spent a night debugging a TypeLoadException in a…
-
I Thought I Knew LINQ — Then I Discovered These Methods
Medium - Ravikumar Makwana Issue #559
I’ve been writing C# for years. I’ve used LINQ countless times. Where(), Select(), OrderBy(), GroupBy()...
-
Building Interactive AI Agents Instead of One-Way Chatbots in C#
C# Corner - Aarav Patel Issue #559
-
Creating a memory dump in C#
C# Digest - [email protected] (Jakub Chodounsky) Issue #558
when an app crashes or hangs, logs alone often don't reveal the whole story
-
Async/Await in C#: What .NET Interviews Actually Ask
Medium - Anchalmehandiratta Issue #558
Async/await is one of the most misunderstood topics in C#, and interviewers know it.
-
The timeout that never fired
Josef Ottosson Issue #558
One if, two bugs: wrongly disposing a cancellation token source can lead to...some fun bugs.
-
Delegates & Events in C#: What .NET Interviews Actually Ask
Medium - Anchalmehandiratta Issue #558
Delegates quietly power something you’ve already used constantly — every LINQ method like Where and Select is built on them. This covers…
-
Developer’s Guide to Importing and Exporting Excel XLSX Using WPF
Medium - MESCIUS inc. Issue #558
Create a C# or VB WPF spreadsheet application with XLSX importing and exporting capabilities offered to the users from the app’s UI.
-
Result Pattern in C# and .NET 10 - When to Use, When to Skip
codewithmukesh Issue #558
A practical guide to the Result pattern in C# and .NET 10: real benchmarks, async services, ProblemDetails mapping, and what C# 15 unions change.
-
Microsoft Agent Framework for .NET (part 4): static methods, instance methods, MCP Clients as custom Agent tools
Code4IT Issue #558
MAF Agents can have custom capabilities through C# methods or MCP clients. Let’s see how to define and use them.
-
RAG in Microsoft Agent Framework Step By Step
YapCast – Jesse Liberty Issue #557
Adding RAG to Microsoft Agent Framework is both straightforward and confusing. OK, that makes no sense, but I’ve been struggling to understand all the steps. Here’s a first approximation, more to come...
-
Convert a String to an Int in C#
Khalid Abuhakmeh Issue #557
Three reliable ways to convert a string to an int in C# — int.Parse, int.TryParse, and Convert.ToInt32 — plus which one to reach for and why.
-
Designing SSRS reports with an AI agent
Medium - ago Issue #557
An agent writes the RDLC, Report Viewer’s engine checks it and shows it the pages. Two real sessions, and what we learned building the…
-
Thread-Safe Singleton in C#
C# Corner - Mariem Moalla Issue #557
-
Agent Memory in C#: What Should an AI Agent Remember?
C# Corner - Aarav Patel Issue #557
-
Top 10 Things Every .NET Developer Should Know (With Real Examples)
Medium - Santanu Chandra Issue #557
Practical lessons from production code, not textbook theory.
-
Closed class hierachies in C#/.NET
Medium - Denis Makarenko Issue #556
Now we can create an abstract class which will be available only for the current assembly.
-
Neural Network Bistratum Regression Using C#
Visual Studio Magazine Issue #556
A hands-on guide to building and training a two-hidden-layer neural network regressor in C#, including data preparation, SGD, evaluation, and using the trained model.
-
Task.WhenAll() vs Sequential Awaits: Stop Wasting Latency on Independent Async Calls
C# Corner - Mariem Moalla Issue #556
-
C# 12 Collection Expressions: Why Your Clean Code Suddenly Stops Compiling
Medium - Mayank Parmar Issue #556
C# 12 introduced collection expressions, making it easier to initialize arrays and collections with a concise syntax.
-
Delegates and events in C# explained
Round The Code - David Grace Issue #556
Learn how delegates and events work in C#, including Action, Func, Predicate and custom EventArgs, with practical examples.
-
Dependency Injection & Service Lifetimes in C#: What .NET Interviews Actually Ask
Medium - Anchalmehandiratta Issue #555
This is where a lot of .NET interviews start, and it’s a topic that pulls together everything from interfaces to constructors to the DI…