languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2768 articles Updated Page 6 of 111
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 6 of 111
Newest first
-
Hybrid Retrieval in C#: Combining Vector Search, Graph Traversal, and Reranking for Agent Memory
Medium - Mehdi Mohseni Issue #560
The Problem with Pure Vector Retrieval
-
DotThrow 2: one set of checks for guard clauses and validation in .NET
Medium - Shanto462 Issue #560
I rewrote my old guard clause library from scratch. It now ships as three NuGet packages, for plain C#, dependency injection and ASP.NET…
-
Background Processing: Handling Long-Running Tasks Safely with Hosted Services
C# Corner - Sardar Mudassar Ali Khan Issue #560
Learn to process long-running ASP.NET Core Web API tasks safely with BackgroundService, IHostedService, and a thread-safe System.Threading.Channels queue.
-
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