C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2334 articles Updated Page 4 of 94
C# articles, tutorials, and news from the DotNetNews archive.
C# articles
Page 4 of 94
Newest first
-
SOLID Principles in C# – Part 5: The Dependency Inversion Principle (DIP)
c-sharpcorner.com Issue #488
Learn the Dependency Inversion Principle (DIP) in C#. Discover why high-level business logic shouldn't depend on low-level implementation details, and how to invert that dependency using abstractions.
-
Implementing the Result Pattern in C# Using Discriminated Unions
medium.com Issue #488
The Simplest Way to Master Your Flow Control
-
Migrating Agentic Code Python -> C# Part 5
jesseliberty.com Issue #488
In the previous post we looked at implementing the Researcher in C#. In this, as promised, we’ll look at the Author and the Reviewer. The Author is handed two objects when instantiated: the llm (an IC...
-
Extracting Hyperlinks from Word Documents in C#
medium.com Issue #487
When handling batch document processing, compliance audits, or automated data extraction, developers frequently need to extract hyperlink…
-
Understanding Predicate, Anonymous Methods, and Lambda Expressions in C#
ngcheehou.medium.com Issue #487
Predicate
-
10 C# Mistakes Senior Engineers Still Make in Production
medium.com Issue #487
These are not beginner mistakes. I have seen every single one of these in production codebases written by engineers with 5, 8, even 12…
-
Stop Writing Factory Switch Statements: Resolving Strategies with Attributes and Reflection
gbemmiey.medium.com Issue #487
In Part 1 of this series, we took a 50+ case switch statement and turned it into a family of small, independently testable strategy…
-
Beyond Chatbots: Building AI Agent Applications in .NET
medium.com Issue #486
Large Language Models have made it incredibly easy to build chat-based applications. A few API calls, a prompt, and a UI are often enough…
-
Building AI-Powered Release Notes from Git History Using .NET
c-sharpcorner.com Issue #486
Automate release notes with .NET and AI from Git history. Streamline documentation, improve consistency, and save developer time.
-
Claude Code for .NET Developers: A Practical Introduction
c-sharpcorner.com Issue #486
Unlock Claude Code for .NET! Learn to integrate this AI agent into your C# workflow for testing, debugging, refactoring, and more.
-
Stop Using .Result and .Wait() in Your .NET Code
medium.com Issue #486
Your app works fine in testing. You deploy it, a few users come on, and then it just… hangs. No error, no crash. The request sits there…
-
30 LINQ Interview Questions That Actually Get Asked in 2026
codewithmukesh.com Issue #486
30 real LINQ interview questions with great answers, red flags, and follow-ups. Deferred execution, IQueryable, expression trees, and the .NET 9/10 operators.
-
Stop throwing exceptions for control flow: the Result railway in C#
medium.com Issue #486
“This order ID does not exist” is not an exceptional event, it is a routine branch of normal control flow. Here is the Result railway…
-
Build a Fitness Tracker Health Dashboard in .NET MAUI — No SDK Required
medium.com Issue #486
Custom arc rings, bar charts, and MVVM from scratch using IDrawable and CommunityToolkit
-
AI-Powered Codebase Modernization Using GitHub Copilot Agents
c-sharpcorner.com Issue #486
Accelerate .NET codebase modernization with GitHub Copilot Agents. Analyze, refactor, and test legacy code efficiently.
-
Learn LINQ in C# from Scratch
c-sharpcorner.com Issue #486
LINQ is a set of language and framework features for writing queries on collection types. It is useful for selecting, accessing, and transforming data in a dataset.
-
Dependency Injection & Agent Framework
jesseliberty.com Issue #486
In the previous blog posts we ported a Python implementation of an agentic application to C# and Microsoft Agent Framework. We used interfaces, but we did not use Dependency Injection (DI). It is pret...
-
Dependency Injection in C# Explained With Real Examples
medium.com Issue #486
When I started working with C# applications, I used to create objects wherever I needed them.
-
AI-Assisted Refactoring Strategies for Large C# Codebases
c-sharpcorner.com Issue #486
Leverage AI for efficient C# codebase refactoring. Improve code quality, reduce technical debt, and boost developer productivity.
-
LoopAgent Class Explained Building Autonomous AI Agents with .NET and MAF - Ep 12
c-sharpcorner.com Issue #486
Learn how the LoopAgent class works in Microsoft Agent Framework and how to build autonomous AI agents with .NET. This session explains iterative agent workflows, autonomous decision-making, execution...
-
Migrating Agentic Code Python -> C# Part 1
jesseliberty.com Issue #485
In the last 5 posts we created an agentic application using Python. Let’s migrate that to C#. Here’s the set of files we’ll create: And here is the output after running it as a test using the prompt U...
-
The Day Deposits Doubled: Idempotency, Race Conditions, and a Lock That Saved Us
medium.com Issue #485
A real war-room story about duplicated deposits in production — why a check-then-insert idempotency guard isn’t enough under concurrency…
-
Understanding Access Modifiers in .NET (C#) — A Complete Guide
medium.com Issue #485
Access modifiers are one of the most fundamental concepts in .NET and C#. They control the visibility and accessibility of classes and…
-
Adding AI to your .NET app: simpler than it sounds
medium.com Issue #485
By a fellow .NET dev who finally stopped overthinking this
-
Build your own claw and agent harness with Microsoft Agent Framework
devblogs.microsoft.com Issue #485
What does it take to build your own "claw" - a capable, CLI-style agent that can plan, use tools, remember things, and safely act on your behalf? Coding agents and assistants like these can feel like ...