languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2703 articles Updated Page 4 of 109
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 4 of 109
Newest first
-
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…
-
C# 14 Quietly Broke Our EF Core Queries, and array.Contains() Was the Culprit
Medium - Owais Issue #555
Nobody touched the code. We changed , and a query that had worked for years started throwing an exception that named…
-
Running NVIDIA Nemotron 3 Diarization on a Windows CPU — with .NET and Japanese Audio
Medium - Kensaku Kuboya Issue #555
A 193-second Japanese conversation diarized in 9.9 seconds on a 2018 office PC, with a C# P/Invoke bridge and listening-based quality…
-
C# Beyond Syntax: 10 Concepts to Understand What Your Code Does
Medium - Asaph Fernandes Issue #555
A visual overview of behavior, execution, and resources in C# and .NET, with small examples and explicit boundaries.
-
When working with Win32 FILETIME , don't forget that you have std::chrono now
Microsoft Dev Blogs - Raymond Chen Issue #554
Some time ago, I was looking at a pull request, and saw that the code was manually calculating the "number of minutes since the last change" by doing annoying math. static const DWORD c_TicksPerSecond...
-
The “Captive Dependency” Trap: Understanding .NET DI Lifetimes
Medium - Satyam Pushkar Issue #554
In modern .NET applications, Dependency Injection (DI) is the backbone of clean, maintainable architecture. We rely on the built-in IoC…
-
Creating a memory dump in C#
Microsoft Dev Blogs - Aaron Powell Issue #554
When applications crash in production, how much do we actually know about what happened? And more importantly, how easy is it to debug what happened so that we can fix the bug? Let's learn how easy it...
-
Top 10 Unexpected NuGet Packages for .NET Developers
Medium - StepOne Issue #554
The NuGet packages that save the most time are often not general-purpose frameworks.
-
Humanizer in .NET: Turn Strings, Dates, and Numbers Into Human-Friendly Text
Medium - Anton Martyniuk Issue #554
Software stores data the way machines like it. Users want to read it the way humans like it. Continue reading on CodeX »
-
Value Types Don’t Always Live on the Stack
Medium - Sudip Parajuli Issue #554
Lifetime and sharing decide the answer, not whether it’s a struct or a class.
-
How I Built a Programming Language in C#: HydraScript
Medium - StepOne Issue #553
Most backend developers spend more time moving JSON than designing languages. I wanted a project that forced me below the framework layer…
-
I Replaced a $120/Year SaaS With My Own App
Milan's .NET Weekly - [email protected] (Milan Jovanović) Issue #553
I paid $120 a year for a transcription tool until a coding agent helped me get my own version running in under an hour.
-
Memory-MCP: Extracting Text from PDFs Without Breaking Reading Order with PdfPig
Medium - ENTANGO Issue #553
The easy part of handling a PDF in an AI memory pipeline is opening the file. The hard part is getting text an LLM can actually reason…