languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2768 articles Updated Page 2 of 111
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 2 of 111
Newest first
-
Temporal Makes .NET Agent Runs Survive Process Restarts
Medium Issue #585
A completed model call survives a worker restart. An interrupted one runs, and bills, twice. Plan for both.
-
Sync vs Async File I/O in .NET: Raw Throughput, Scalability, and Buffer Size
Meziantou's blog Issue #584
This is a bonus post to the series about async/await in C#. The series explains how async works, from the problem it solves up to the .NET 11 runtime taking over await. This post applies all of it to ...
-
[Don’t .NET] Just an underscore?
Medium Issue #584
As you probably know, _ is useful when an API gives you a value you don’t care about:
-
How to Automate PowerPoint Slides in C#: Add, Delete, Copy & Hide
Medium Issue #583
If you are building dynamic reports, automating branded decks, or batch-cleaning a PPT template, you need to programmatically control the…
-
Migrating to runtime async
Meziantou's blog Issue #583
This is the last post of the series proper, with one bonus post to follow. The previous two posts showed what runtime async does to the IL and to the numbers. This one is about the code you already ha...
-
C# 15 is Here! 7 Awesome Features That Will Change How We Code in .NET 11
Medium Issue #583
Hello, .NET developers! 👋
-
Building Retrieval-Augmented Generation (RAG) in C#
C# Corner Issue #582
Learn how retrieval-augmented generation grounds an LLM in your own data, build a working RAG app in C#, and know when to add hybrid search, GraphRAG or evals.
-
Chain of Responsibility Design Pattern (LLD) in C# — From Problem to Production Trade-offs
Medium Issue #582
How to eliminate sprawling conditional approval trees, build fluent handler pipelines in C#, and understand the pattern powering ASP.NET…
-
Understanding Lazy
thread safety modes Andrew Lock | .NET Escapades Issue #582
In this post I look at how the different `LazyThreadSafetyMode` values work with `Lazy`, and how exceptions are handled for each mode
-
Data Smoothing with the Nadaraya-Watson Kernel Technique Using C#
Visual Studio Magazine Issue #582
James McCaffrey demonstrates how to implement Nadaraya-Watson kernel smoothing in C# to reduce noise and reveal patterns in multidimensional data.
-
Encrypted, Tamper-Proof Tokens: Designing a C# Library for Expiring Download Links
Csharp on Medium Issue #582
A stateless, compact .NET 10 library with key rotation: what it does well, what it doesn’t, and when it makes sense to use itContinue reading on Stackademic »
-
TimeProvider in .NET: How to Test Time-Dependent Code Without Waiting
Medium Issue #581
Imagine you’re building an application that sends OTPs to users. An OTP is valid for only 5 minutes. You write something like this:
-
C# 15 Union Types vs Result Pattern: What Do Backend APIs Actually Gain?
Medium Issue #581
Four checkout outcomes, a fifth-case change, and the boundaries between compiler coverage, HTTP contracts and JSON in .NET 11 RC3.
-
7 Design Patterns Every .NET Developer Already Uses (and How to Use Them on Purpose)
Medium Issue #581
A practical tour of the patterns that show up in almost every .NET codebase, with C# you can paste into a project today.
-
Using C# Interceptors to Reduce Repeated Code in .NET Applications
C# Corner Issue #580
Learn how C# interceptors redirect selected method calls at compile time, how they relate to source generators, and where they can reduce repeated logging, validation, and instrumentation code.
-
Our First @
Medium Issue #580
Building Rogue #3: Learning Software Development One Dungeon at a Time
-
C# 14 Extension Members: The Shadowing Bug the Compiler Won’t Warn You About
Medium Issue #580
C# 14 lets extension blocks declare properties and static members, not just methods. That new surface comes with an old risk from a…
-
What is tool calling in AI? Build a simple .NET example
elmah.io Blog - .NET Technical tutorials/guides and new features Issue #580
LLMs understand language, but they can't query your database or call an API on their own. Tool calling closes that gap: the model names a function and its arguments, and your app runs it. This post wa...
-
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.