languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2552 articles Updated Page 2 of 103
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 2 of 103
Newest first
-
Using C# 14 to build "Smart records" for config & settings models
blog.elmah.io Issue #540
Traditional config classes let properties be mutated anywhere and accept invalid values with no warning. This article shows how to use C# 14's new extension-block syntax with records to build "smart r...
-
XPath for custom types in .NET
meziantou.net Issue #540
XPath is widely known as the query language for XML documents. Most .NET developers associate it with XPathNavigator, XmlDocument, or XDocument. But what most people don't realize is that XPath can wo...
-
How to Make AI Write High-Quality Code in .NET
antondevtips.com Issue #539
AI writes .NET code fast, but it only follows the rules it cannot skip. Learn how to set up build guardrails, static analysis, and a Claude review skill that catches clean code issues on every change.
-
Counting to int.MaxValue — and Learning Thread Synchronization Along the Way in C#
medium.com Issue #539
After reading and exploring various blogs and books about threads in C#, I started thinking about what example I could work on to dig into…
-
AI Agent Verification in .NET: Building Deterministic Checks for Non-Deterministic AI
c-sharpcorner.com Issue #539
Learn how to verify AI agent behavior in .NET using deterministic checks, tool validation, policy enforcement, and automated tests for safer and more reliable enterprise AI systems.
-
Custom Agents in Microsoft Agent Framework for .NET: building a chat with custom instructions
code4it.dev Issue #539
Learn how to create a custom AI Agent in Microsoft Agent Framework for .NET with a name and custom instructions. And then, learn how to handle multi-turn conversations and improve responses through be...
-
Boost Your .NET Projects with Spargine: Simplify Thread Pool Execution with ThreadPoolHelper
dotnettips.com Issue #539
Spargine's ThreadPoolHelper simplifies concurrent execution in .NET applications by providing reusable APIs that manage thread pool operations. It supports single and batch operations, bounded concurr...
-
[.NET] Task vs ValueTask — understand the differences like a pro
edengoforit.medium.com Issue #539
Before we explain the differences between Task and ValueTask, we should understand why Task became the core building block of async…
-
Stop alt-tabbing into the wrong Visual Studio
devblogs.microsoft.com Issue #539
A user asked for per-solution color themes. It already ships, and it goes further than they asked. You run several instances of Visual Studio side by side, one per solution, and they all look identica...
-
Nodes & Edges in Microsoft Agent Framework
jesseliberty.com Issue #539
tl;drHow do you reliably combine deterministic business logic, parallel retrieval, and noisy LLM calls in production? The Microsoft Agent Framework answers this by modeling workflows as directed graph...
-
Let's Learn .NET: Let's Learn GitHub Copilot SDK
youtube.com Issue #538
Join this beginner-friendly livestream to learn how to build agentic applications with the GitHub Copilot SDK for .NET, without implementing the agent loop yourself. Unlike calling a model API directl...
-
An Open-Source Telegram Server in C#: Four Years Later - HackerNoon
hackernoon.com Issue #538
An Open-Source Telegram Server in C#: Four Years Later HackerNoon
-
Union types? No, discriminated union
medium.com Issue #538
Union types bring an elegant way to work with code, but there are also some disadvantages. If you’re interested in how we can improve it…
-
Adding Properties with extension methods in C# 14
steven-giesel.com Issue #538
Thanks to @toupswork for starting a funny discussion about extension properties on a recent post I made: "Adding static getter thanks to extensions" . Therefore let's discuss two ridiculous ideas to a...
-
Your Coding Agent Isn’t Reading Your Code. It’s Hunting For It.
medium.com Issue #537
And in a layered C# codebase, that hunt is where most of your context window goes.
-
JSON Schema Annotation Support for .NET Validator
blog.devgenius.io Issue #537
JSON Schema is usually introduced as a validation technology: given a schema and a JSON document, a validator tells you whether the… Continue reading on Dev Genius »
-
How to Manage Application Settings Using the Options Pattern in .NET
yogeshhadiya33.medium.com Issue #537
Application settings are used in almost every application. Things like API URLs, connection strings, feature flags, timeout values, and…
-
The Bug That Only Shows Up Under Load: A Backend Engineer’s Guide to Concurrency
publication.masteringbackend.com Issue #537
Concurrency Will Break Your System Quietly — Here’s How to Avoid That Continue reading on MasteringBackend »
-
IEnumrable and IQueryable in c#
c-sharpcorner.com Issue #537
Learn the difference between IEnumerable and IQueryable in C# with simple examples. Understand how LINQ queries are executed, how Entity Framework Core translates IQueryable queries into SQL, and why ...
-
How to Secure an Email Attachment Intake Service in C#
cloudmersive.medium.com Issue #536
Email attachment intake applications tend to move content quickly from inbox to storage, document processing, or other automated workflows.
-
Stop Caching Everything: The Grey Logic Behind High-Performance Applications
medium.com Issue #536
Performance tuning is often approached with a simple mindset:
-
Numerics.NET with Jeffrey Sax
spreaker.com Issue #536
So what can numerics do for you? Carl and Richard talk to Jeffrey Sax about his work building Numerics.NET, a collection of general-purpose mathematical and statistical classes built for .NET. Jeffrey...
-
3D MonoGame Camera & Directional Light
hooleyautomation.medium.com Issue #536
Are you looking at starting a new 3D project using MonoGame? This Camera is a part of my Star-Lite framework. Our Camera3D has, so far…
-
How to Run Local ONNX Models in C#: Building an Offline AI Image Processor on Windows
medium.com Issue #536
If you are developing desktop utilities or working with computer vision tasks on Windows, relying on external cloud APIs for things like…
-
GitHub Copilot Customize Tab: Managing MCP Servers, Plugins, Skills, and Canvases
c-sharpcorner.com Issue #536
Learn how GitHub Copilot's Customize tab manages MCP servers, plugins, skills, and canvases to extend AI coding workflows and customize enterprise developer experiences.