languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2322 articles Updated Page 13 of 93
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 13 of 93
Newest first
-
Difference Between IEnumerable and IQueryable in C#
c-sharpcorner.com Issue #443
Feature IEnumerable IQueryable Execution Location In-memory Database / Remote Query Execution Immediate Deferred Performance Slower for large data Faster for large data Filtering Client-side Server-si...
-
Removing byte[] allocations in .NET Framework using ReadOnlySpan
andrewlock.net Issue #442
In this post I describe how to remove static byte[] allocations, even on .NET Framework, by using Span
-
Service Lifetimes in .NET: What Finally Made It Click
medium.com Issue #442
I understood dependency injection, but I didn’t really understand what scoped, transient, and singleton actually meant.
-
Evaluating CRON and RRule expressions in .NET
meziantou.net Issue #442
Evaluating recurring date patterns is a common requirement in many applications. Whether you need every day, every Monday at 9 AM, or the last day of each month, you need a reliable way to calculate u...
-
Stop Using Classes for DTOs: Why It’s Time to Switch to Records
muhammadirwanto.medium.com Issue #442
If you are still defining your Data Transfer Objects (DTOs) as classes, you are carrying unnecessary baggage. In the modern C# ecosystem…
-
Coroutines in C#: The Missing Guide to Cooperative Programming, Concurrency, and More
medium.com Issue #442
If you’ve ever wondered how coroutines work in C#, you’re not alone. Whether you’ve stumbled upon “co” prefixes in concurrency discussions…
-
Why .NET and C# Are Still One of the Best Choices for Modern Development in 2026
medium.com Issue #442
If you’ve been around software development for a while, you’ve probably heard people argue about languages and frameworks like it’s a…
-
Primary constructors for my DI service classes
medium.com Issue #442
I resisted primary constructors for a while. When C# 12 extended them from record types to regular classes and structs, my gut reaction…
-
Keys and Rooms solution in c#
medium.com Issue #441
So lets break it in pieces to make the algorithm clear for everyone who uses different programming languages:
-
Difference between Abstract Class and Interface in C#
c-sharpcorner.com Issue #441
Unlock C# abstraction! Explore the key differences between abstract classes and interfaces with real-world examples. Learn when to use each for cleaner, scalable code.
-
Source Generator-Based CQRS Library in C#: A Review of the Mevora Library
medium.com Issue #440
Hello, fellow .NET developers! Today, I’d like to talk to you about a new library — Mevora — that promises to be quite exciting, and how…
-
Stop Handing Over Your Entire Wallet: DTOs in .NET Explained
medium.com Issue #440
Let’s say you go to a coffee shop. Your coffee costs $5. Do you hand the barista your entire wallet, let them dig through your credit…
-
Difference Between Record and Class in C# with Examples?
c-sharpcorner.com Issue #440
Unlock the secrets of C#! Discover the key differences between records and classes, including mutability, equality, and use cases. Write cleaner, safer code!
-
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…