languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2552 articles Updated Page 19 of 103
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 19 of 103
Newest first
-
Understanding async/await in C# With Simple Examples
Medium Issue #460
Simple Examples for Beginners
-
I Built a Visual Studio Extension to Fix the Most Annoying C# Workflow — Here’s How
Medium Issue #460
Stop pressing Ctrl+. for every missing `using`. OhUsings imports them all at once. Continue reading on CodeCampsis »
-
Understanding Stacks and Queues in C#: A beginner-friendly guide
Medium Issue #460
Data Structures are the Backbone of efficient Software Development. Among the most commonly used data Structures in C# are Stack and Queue…
-
Creating a Simple MCP Server in .NET
The Long Walk — RSS Issue #459
In my previous post, I covered how to interact with a local LLM from .NET using LM Studio. In this post, I’m going to take that a little…
-
When Your Use Case Half-Succeeds: Designing for Partial Failure in .NET
Milan's .NET Weekly Issue #459
A use case isn't a transaction. The moment it touches more than one system, you are dealing with partial failure. Here's how I classify side effects and design use cases that fail loudly and recover s...
-
On .NET Live: How Coding Standards Supercharge .NET Quality & Performance
dotNetTips.com Issue #459
For the second time, I’m excited to be a guest on On .NET Live on May 18th at 9 AM PST! I’ll be talking about one of my favorite subjects: coding standards and how they can supercharge .NET code quali...
-
.NET 11 Preview 4 is now available!
Microsoft Dev Blogs Issue #458
Find out about the new features in .NET 11 Preview 4 across the .NET runtime, SDK, libraries, ASP.NET Core, .NET MAUI, C#, Entity Framework Core, and more! The post .NET 11 Preview 4 is now available...
-
Removing byte array allocations using ReadOnlySpan
C# Digest Issue #457
no matter which version of .NET you're targeting
-
C#: How to Refactor Legacy Code Safely
Chris Pietschmann Issue #457
Legacy C# code is usually not dangerous because it is old. It is dangerous because you do not fully know which parts are stable, which parts are accidentally correct, and which parts are one small cha...
-
How to Integrate a RESTful SMM Panel API using C# and HttpClient
C# Corner Issue #457
Learn how to automate digital marketing operations by integrating a RESTful SMM Panel API using C# and HttpClient. This step-by-step tutorial covers connecting to SMM Bear, a leading Indian SMM panel,...
-
The Misleading IndexOutOfRangeException That Means “Your List Isn’t Thread-Safe”
Network Programming in .NET Issue #457
If you’ve ever seen a stack trace like this in a .NET application: …and you stared at the offending line — something innocuous like myList.Where(x => x.IsActive).ToList() — wondering how on earth a LI...
-
Working with Span, Memory, and ref structs in High-Performance Apps using .NET 9
C# Corner Issue #456
Unlock peak .NET 9 performance! Dive into Span<T>, Memory<T>, and ref structs for allocation-free, high-speed code. Master stack-based memory and reduce GC pressure.
-
Prompt Engineering in C#: System Messages, Few-Shot Examples & Structured Output
Medium Issue #456
The Problem
-
The Complete C# Guide: From Access Modifiers to Zero-Allocation Memory — Everything a Production…
Medium Issue #456
C# is one of the most feature-rich languages on the planet. The problem isn’t learning it — it’s knowing which parts actually matter when… Continue reading on JIN System Architect »
-
MCP Magic: Building Tool-Enabled AI Agents with C#
Visual Studio Magazine Issue #455
Rockford Lhotka previews his Visual Studio Live! San Diego session, "MCP Magic," and explains why the Model Context Protocol is becoming a key building block for AI agents. In this Q&A, ...
-
Pattern matching in C#: Advanced scenarios you didn't know
elmah.io Blog - .NET Technical tutorials/guides and new features Issue #455
table of contents Pattern matching is not just condition checking. It reflects how you think as a developer. Matching and validation can be achieved in a naive, descriptive way. However, a cleaner app...
-
10 Hidden Features in C# That Will Make You a Better Developer
blog.stackademic.com Issue #455
Most developers learn the basics of C# and stop at classes, loops or maybe a bit of LINQ. But C# has evolved a lot over the years and many… Continue reading on Stackademic »
-
Simple Multithreading in C# with a Practical Example (.NET 10)
Medium Issue #455
Multithreading is a fundamental concept in modern programming that allows applications to perform multiple operations concurrently.
-
What We Lost the Last Time Code Got Cheap
Mark Downie - PoppaString Issue #455
I worked at a startup in Toledo called Heartland Information Services. We provided transcription services to some of the biggest hospitals in the United States, and we weren't small. Heartland was one...
-
Difference Between ValueTask and Task in C# with Performance Use Cases?
C# Corner Issue #455
Explore Task vs. ValueTask in C# async programming. Learn when to use ValueTask for performance gains by minimizing memory allocation in high-throughput scenarios. Task is simpler and safer!
-
Machine Learning for C# Developers Made Easy
Medium Issue #454
If you’ve been following me for a while, you would know that I wrote several books related to .NET and C#. Most recently, I published a…
-
Stop Creating Fake Data Manually — Use Bogus in .NET 10
Medium Issue #454
Every developer has been there — staring at a blank test file, typing "John Doe" for the hundredth time. There's a better way.
-
How Are ‘virtual’, ‘partial’, ‘override’ Used in C#?
Medium Issue #454
And what are they in the C# programming language. Let’s review that together.
-
Collection Performance: AddRange() vs. InsertRange() When Populating Lists
dotNetTips.com Issue #454
When populating collections in .NET, choosing the right bulk operation improves both clarity and efficiency. Methods like AddRange() and InsertRange() allow multiple items to be added in a single call...
-
Deferred Execution in LINQ: What Finally Made It Click
Medium Issue #454
I thought my LINQ query had already run… but it hadn’t.