languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2640 articles Updated Page 13 of 106
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 13 of 106
Newest first
-
Mastering Channels in C#: Async Producer/Consumer With Backpressure
Medium Issue #506
From first principles to a production ingestion pipeline: backpressure, completion, and fault propagation done right
-
Interfaces in C#: The Complete Practical Guide Every .NET Developer Should Master
C# Corner Issue #505
Master C# interfaces: the contract that separates 'what' from 'how', enabling flexible, testable, and maintainable .NET applications.
-
I Squeezed 100 C# Concepts Into 100 Minutes. Here’s Why.
Medium Issue #505
A few weeks ago I was answering the same question for maybe the tenth time: “Where do I actually start with C#?”
-
Mastering Async Streams in C#: IAsyncEnumerable Guide
Medium Issue #505
Stream data as it arrives in C#. Master IAsyncEnumerable, await foreach, cancellation gotchas, Channels, and .NET 10's built-in async LINQ
-
LINQ Execution: Immediate vs. Deferred (And Why It Matters More Than You Think)
Medium Issue #505
If you’ve worked with LINQ in C# for any length of time, you’ve probably run into a bug that made no sense at first glance — a query…
-
Advanced C# Pattern Matching: Practical Examples Every Developer Should Know
C# Corner Issue #505
Master advanced C# pattern matching: type, property, relational, logical, list, and switch expressions for cleaner code.
-
You don't need to create all properties inside a DTO to successfully deserialize
C# Corner Issue #504
Short example on JSON serialisation aimed to combat excessive use of JObjects
-
C# ToString(), operators and indexers - Are you using these?
Round The Code Issue #504
Learn how to override ToString(), overload operators and use indexers in C# classes, featuring examples of addition and subtraction. The page C# ToString(), operators and indexers - Are you using thes...
-
Building an AI-Powered Knowledge Base Using Vector Databases and C#
C# Corner Issue #504
Build AI-powered knowledge bases with C# & vector databases for semantic search, understanding user intent & delivering accurate, context-aware answers.
-
RAG explained in C#
Medium Issue #504
Retrieval-Augmented Generation (RAG) combines a large language model (LLM) with search over your own knowledge base. Instead of only…
-
SOLID Principles Explained with C# Examples (Simple + Interview-Friendly)
Medium Issue #504
Introduction
-
Handling Timeouts in C# like a pro
Medium Issue #504
I’ve been a software engineer for approximately 20 years, and during that time there’s been one recurring theme that has always surprised…
-
LINQ in C#: The Complete Beginner's Guide with Practical Examples (Part 2)
Medium Issue #504
Understanding Single(), SingleOrDefault(), Last(), and LastOrDefault()
-
Building a Database in a Text File — Why Async Is Not Enough
Medium Issue #503
The Idea Behind This Series
-
How do you design immutable classes in C#?
Medium Issue #503
Designing immutable classes in C# means creating objects whose state can’t change after construction
-
Understanding Garbage Collector and Finalizers in C#
Medium Issue #503
When we write code in C#, we create objects all the time.
-
IEnumerable vs IQueryable: Ask this question first
Medium Issue #502
While searching differences between IEnumerable vs IQueryable, we generally find below explanation : Continue reading on Women in Technology »
-
Your Try-Catch Blocks Are Lying to You
Medium Issue #502
Exceptions aren’t free, and neither is treating every failure like one. Here’s how I split the two, and where I draw the line.
-
Concat Costs
Medium Issue #501
String concatenation with + is fine for one line, but in loops or dynamic UI it forces the garbage collector to work overtime…
-
The C# 14 field Keyword Looks Like Free Cleanup. It Can Still Break Your EF Core Mapping
C# Corner Issue #501
C# 14 field keyword can break EF Core backing-field mapping and reflection code. Learn the risk and how to check your codebase first.
-
LINQ in C#: Skip(), SkipWhile(), Take(), and TakeWhile() More Than Just Paging Defining Domain…
Medium Issue #501
Paging, Windows, and Domain Boundaries
-
ML.NET — Machine Learning Without Leaving .NET
Medium Issue #500
Most .NET developers I’ve spoken to hit the same wall. The project needs something predictive — maybe flagging bad input, maybe ranking…
-
Building AI Workflows with Semantic Kernel Process Framework in .NET
C# Corner Issue #500
Build structured AI workflows in .NET with Semantic Kernel's Process Framework. Orchestrate AI, logic, tools, and human interaction for complex applications.
-
C# Tip: Use required members to prevent invalid object initialization (beware of SetsRequiredMembers attribute!)
Code4IT Issue #500
Learn how to use required members in C# to enforce complete object initialization at compile time and avoid half-configured models. And beware of the SetsRequiredMembers attribute, which can be danger...
-
Beyond the Basics: 5 Switch Expression Patterns Every C# Developer Should Know
Medium Issue #500
Think you’ve mastered switch expressions? These five patterns will help you write cleaner, safer, and more maintainable C# code. Continue reading on C# Snaps: Sharp Bites for Better Code »