languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2386 articles Updated Page 3 of 96
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 3 of 96
Newest first
-
LINQ Execution: Immediate vs. Deferred (And Why It Matters More Than You Think)
medium.com 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-sharpcorner.com 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-sharpcorner.com Issue #504
Short example on JSON serialisation aimed to combat excessive use of JObjects
-
C# ToString(), operators and indexers - Are you using these?
roundthecode.com 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-sharpcorner.com 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.com 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.com Issue #504
Introduction
-
Handling Timeouts in C# like a pro
truestorydavestorey.medium.com 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.com Issue #504
Understanding Single(), SingleOrDefault(), Last(), and LastOrDefault()
-
Building a Database in a Text File — Why Async Is Not Enough
medium.com Issue #503
The Idea Behind This Series
-
How do you design immutable classes in C#?
medium.com Issue #503
Designing immutable classes in C# means creating objects whose state can’t change after construction
-
Understanding Garbage Collector and Finalizers in C#
wiemksaier.medium.com Issue #503
When we write code in C#, we create objects all the time.
-
IEnumerable vs IQueryable: Ask this question first
medium.com 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.com 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.com 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-sharpcorner.com 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.com Issue #501
Paging, Windows, and Domain Boundaries
-
ML.NET — Machine Learning Without Leaving .NET
medium.com 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-sharpcorner.com 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.dev 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.com 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 »
-
Dependency Injection in .NET Explained Like You’re Building a Restaurant
medium.com Issue #500
One of the most important concepts in .NET — explained with a simple real-world analogy.
-
Building a Console-Based Vehicle Rental Management System Using N-Layer Architecture in C# and EF Core
c-sharpcorner.com Issue #500
Learn C# data management with Entity Framework Core. Set up connections, manage entities, and implement data operations for your applications.
-
Building Your First MCP Server in C#: A 2026 Field Guide
medium.com Issue #498
If you’ve touched an AI coding tool in the last year, you’ve probably run into the Model Context Protocol (MCP) even if nobody called it…
-
C# PDF Libraries: What 'Free' Really Costs You (2026 Guide) - HackerNoon
hackernoon.com Issue #498
C# PDF Libraries: What 'Free' Really Costs You (2026 Guide) HackerNoon