languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2768 articles Updated Page 3 of 111
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 3 of 111
Newest first
-
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
-
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