languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2640 articles Updated Page 7 of 106
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 7 of 106
Newest first
-
Building your own MCP server
YouTube Issue #533
The Model Context Protocol (MCP) is all the rage and rightly so. As the USB-C for AI, it is an incredibly powerful tool that acts as a bridge between real-world systems and LLMs. But how do you get st...
-
AI Agents vs LLMs: What’s the Difference and When Should Developers Use Each?
C# Corner Issue #533
Understand the difference between LLMs and AI agents with practical C# and .NET examples covering tool calling, memory, state, agent loops, RAG, guardrails, and enterprise AI architecture.
-
Grand Larceny Auto: Manually Unpacking a ConfuserEx-Protected .NET/Godot CTF Challenge
Medium Issue #533
A hands-on walkthrough of defeating rename obfuscation, control-flow flattening, caller-bound string encryption, and a logic bug in a…
-
CoPilot Harness and Microsoft Agent Framework
YapCast – Jesse Liberty Issue #533
Our friends at Microsoft have paired our development tool (CoPilot) with Microsoft Agent Framework. This powerful combination allows developers to create intelligent agents that can automate tasks, en...
-
What Actually Happens When You Use async and await in .NET?
Medium Issue #533
If you work with .NET, you have probably written code like this:
-
PostgreSQL 19 SQL/PGQ: Building Property Graph Queries with .NET
C# Corner Issue #533
Learn how PostgreSQL 19 SQL/PGQ enables property graph queries and explore how .NET applications can model relationships, traverse graphs, and query connected data.
-
How to Set Excel Cell Background in C# (Solid, Texture, and Gradient)
Medium Issue #533
Are you looking to make your Excel reports more visually appealing and easier to interpret? Whether you need to highlight critical KPIs…
-
Diving in OOP (Polymorphism and Inheritance – Part 5): All About Properties in C#
C# Corner Issue #532
Learn C# properties from fundamentals to modern syntax, including get, set, backing fields, auto-properties, init, required, abstract properties, inheritance, and C# 14 field keyword.
-
LAZY in C#.
Medium Issue #532
“Lazy loading” in C# generally means delaying the creation/initialization of an object until the moment it’s actually needed, rather than… Continue reading on SilentTech »
-
What Is the Difference Between String and string in C#?
Medium Issue #532
At first glance, these two C# declarations may look different:
-
C# 15 Unsafe Model: Auditing Existing Native Interop Code for .NET 11
C# Corner Issue #532
Learn how to audit existing C# native interop and unsafe code for C# 15 and .NET 11, focusing on compatibility, safety, migration risks, and best practices.
-
What's the coolest thing coming in the next version of C#?
YouTube Issue #531
Union types. Mads Torgersen explains how C# will let you model a closed set of unrelated types, create union values from them, and switch over them in a fully strongly typed way. It lands in C# 15 thi...
-
Unions are here | Union types in C#
Medium Issue #531
.NET 11 is finally getting union types. If you’re interested in what they’re worth or what’s wrong with them, let’s go under the hood.
-
Explore new features available in C# 15 preview
Microsoft Dev Blogs Issue #531
C# 15 will ship with .NET 11 in November. All the new features are available in .NET 11 preview 7 for you to try now. C# 15 adds union types, closed hierarchies, the first preview of an updated unsafe...
-
Keep Your Application Layer Clean: FluentValidation and Mapster in .NET Clean Architecture
Medium Issue #530
How to stop your services from drowning in if/else validation and manual mapping code
-
Still Using Task.Run() in ASP.NET Core? Fix C# Async Await the Right Way
Medium Issue #530
Your ASP.NET Core API is slow, so you add Task.Run() and expect things to get better.
-
C# 15 Union Types in .NET 11: Benchmarking Pattern Matching and Allocation Costs
C# Corner Issue #530
Benchmark C# 15 union types in .NET 11 by comparing pattern matching performance, memory allocations, and execution costs against traditional C# approaches.
-
Threads vs Task Parallel Library (TPL) in .NET [Part 3]
Medium Issue #530
Part 3: ⚽ Sports Betting Platforms — Parallelism Under Real-Time Pressure
-
How to Create a Custom Date Picker Control in Windows Forms
C# Corner Issue #529
In this article, learn how to build a custom, lightweight date picker control for Windows Forms applications using C#. Discover how to design custom UI layouts, manage date selection logic, and extend...
-
Building a Distributed Task Queue from Scratch in C#
Medium Issue #529
I started this project with a simple question:
-
.NET 11 Preview 7: What’s New and Why Developers Should Explore It
C# Corner Issue #529
A simple and practical look at .NET 11 Preview 7, covering the latest features, performance improvements, ASP.NET Core updates, C# development, EF Core, cloud tools, and what developers should know be...
-
Graceful Degradation: Architecting Resilient Enterprise Applications in C#
C# Corner Issue #529
Graceful degradation is an architectural pattern that detects component failures and falls back to reduced functionality—ensuring core operations remain available and business continuity is preserved.
-
Rubbish Code, Clean Memory: Understanding the .NET Garbage Collector
Medium Issue #529
Automatic memory management is a cornerstone of what makes many modern programming languages and runtimes so appealing to many engineers…
-
Designing Controlled Concurrency in .NET with SemaphoreSlim
C# Corner Issue #529
Learn how to use SemaphoreSlim to control asynchronous concurrency in .NET, limit concurrent order-processing operations, avoid resource pressure, and improve throughput compared with fixed-size batch...
-
Business Rules Don’t Have to Live in a Wiki Page: Enforcing Them with a Roslyn Analyzer
Medium Issue #528
How a .NET Roslyn analyzer moves a business-specific guardrail from developer memory into every build