C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2334 articles Updated Page 14 of 94
C# articles, tutorials, and news from the DotNetNews archive.
C# articles
Page 14 of 94
Newest first
-
Difference Between readonly and const in C# with Examples?
c-sharpcorner.com Issue #440
Understand the crucial differences between `readonly` and `const` in C#. Learn when to use each keyword for optimal code clarity, performance, and maintainability in C# applications.
-
ASP.NET Community Standup: Combining API Versioning with OpenAPI
youtube.com Issue #439
Difference Between Span and Memory in C# with Examples?
-
How to Implement Unit Testing in .NET using xUnit with Example
c-sharpcorner.com Issue #439
Master .NET unit testing with xUnit! Learn to write effective tests, catch bugs early, and improve code quality. Includes practical examples and best practices.
-
Dependency Injection in .NET: Building Maintainable, Testable, and Scalable Applications.
achuchiwilliam.medium.com Issue #439
Modern .NET development emphasizes clean architecture, maintainability, and flexibility. One of the most important concepts that enables…
-
Stop Calling .ToList()
serkanozbeykurucu.medium.com Issue #439
There’s a line of code I keep finding in .NET repositories that looks harmless and costs teams real money.
-
Refactoring to SOLID in C#
markheath.net Issue #438
It aims to provide C# developers with practical techniques and strategies to tackle the unique challenges of working in legacy codebases, such as dealing with technical debt, modernizing outdated depe...
-
Suppressing Roslyn Analyzer Warnings Programmatically using DiagnosticSuppressor
meziantou.net Issue #438
Roslyn analyzers are great for enforcing coding standards and finding bugs. However, they can sometimes report false positives or warnings you want to ignore in specific contexts. You can suppress the...
-
OOP in C# — Deeper Understanding for Freshers
c-sharpcorner.com Issue #438
Unlock the power of OOP in C#! This beginner-friendly guide simplifies encapsulation, inheritance, polymorphism, and abstraction with real-world examples. Build better C# applications!
-
Agent Skills in .NET: Three Ways to Author, One Provider to Run Them
devblogs.microsoft.com Issue #438
Your agents can now draw on skills authored in three different ways – as files on disk, as inline C# code, or as encapsulated classes – and combine them freely in a single provider. Add built-in scrip...
-
I Built a .NET Library for ACH Files — and Made It Much Faster Than the Popular Alternative
medium.com Issue #437
How `ReadOnlySpan<T>`, a `ref struct`, and some simple design decisions made parsing ACH files dramatically faster
-
Difference Between yield return and return in C# with Examples?
c-sharpcorner.com Issue #437
Unlock the power of C#! Discover the difference between `return` and `yield return` for efficient data handling. Learn when to use each for optimized memory and performance in your applications. Maste...
-
I Spent a Weekend Building a C# Web API Without a .csproj and .sln, and It Felt a Lot Like Go
medium.com Issue #437
I’ve been writing C# on and off since around 2020, and for most of that time the first thing I do on any new project is the same: dotnet…
-
String Performance: Why Some String Searches Are Slower Than You Think
dotnettips.com Issue #437
String searching is fundamental to modern applications, yet its performance impact is often overlooked. This article explores how common string search patterns can quietly slow down your code—and how ...
-
How to Build a Multi-Agent Workflow in C# Guide
c-sharpcorner.com Issue #436
Build intelligent multi-agent systems in C# with Semantic Kernel. Automate complex tasks by orchestrating AI agents for research, writing, and review. Learn step-by-step!
-
How to Implement Vector Search in C# with Azure AI or Qdrant
c-sharpcorner.com Issue #436
Unlock semantic search in C#! This guide explores vector search implementation using Azure AI Search and Qdrant. Build smarter apps with AI-powered features.
-
C# 15 Union Types: Finally Solving a Long-Standing Problem (With Example)
medium.com Issue #436
A few months ago, I ran into a very common problem while writing C# code. Continue reading on GoPenAI »
-
Stop Writing Guard Clauses Like It’s 2010
medium.com Issue #436
Stop Writing Guard Clauses Like It’s 2010 Continue reading on .NET Fiddle »
-
What Is a NullReferenceException in C# and How to Fix It Properly?
c-sharpcorner.com Issue #436
Master C# NullReferenceExceptions! Learn to identify, fix, and prevent this common error with practical examples, null checks, and modern C# features for robust code.
-
Stop Repeating Yourself! Loops in C# (Part 10)
medium.com Issue #435
How to make the computer do the boring work over and over
-
Advanced C# Concepts Every .NET Developer Should Know
medium.com Issue #435
A practical deep-dive into async/await, delegates, pattern matching, expression trees, and reflection — with examples.
-
Why Most Developers Misunderstand IEnumerable vs IQueryable (And Pay for It in Production)
medium.com Issue #435
You write a clean LINQ query, test it locally, and everything looks fine. Then it hits production.
-
10 Hidden Features in .NET Developers Are Sleeping On
pushpadangi.medium.com Issue #434
Stop writing boilerplate code and discover the framework features that’ll make your colleagues ask “wait, .NET can do that?”
-
How to Use Multithreading in C# to Run Tasks in Parallel?
c-sharpcorner.com Issue #434
Unlock the power of parallel processing in C# with multithreading! Learn how to use Tasks, async/await, and the Parallel class to boost performance and responsiveness. Master multithreading!
-
Stop Leaking Generated Types in .NET
medium.com Issue #434
If you’ve ever opened generated C# code and thought, “Why are there so many tiny helper types floating around my assembly?”, this post is…
-
What are the new features in C# 14 for developer productivity?
c-sharpcorner.com Issue #434
Explore C# 14's productivity boosters! Discover streamlined pattern matching, primary constructors, collection expressions, and more for efficient .NET development.