languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2552 articles Updated Page 22 of 103
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 22 of 103
Newest first
-
What is the difference between struct and class in C# with performance comparison?
C# Corner Issue #444
Unlock C# performance! Explore struct vs. class differences: memory, speed, and use cases. Optimize your .NET apps with the right choice for efficiency.
-
LINQ GroupBy & IGrouping
Medium Issue #444
Understanding Grouping as a Domain Modeling Tool — Not Just a Query Operator
-
C# Dotnet collection internals — Queue
Medium Issue #444
How queues use arrays, circular buffer internally?
-
Record vs Class in C#: When to Use What (With Real Examples & EF Core Guide)
Medium Issue #444
Learn C# record vs class with examples, immutability, equality, EF Core limitations, and best practices for clean architecture.
-
Serialization vs Deserialization in .NET — Explained Simply
Medium Issue #443
When I first started working with APIs in .NET, I kept seeing these two terms everywhere:
-
Difference Between IEnumerable and IQueryable in C#
C# Corner 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
Andrew Lock | .NET Escapades 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 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's blog 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
Medium 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 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 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 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 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# Corner 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 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 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# Corner 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# Corner 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 Issue #439
Difference Between Span and Memory in C# with Examples?
-
How to Implement Unit Testing in .NET using xUnit with Example
C# Corner 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.
Medium Issue #439
Modern .NET development emphasizes clean architecture, maintainability, and flexibility. One of the most important concepts that enables…
-
Stop Calling .ToList()
Medium 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#
Sound Code - Mark Heath's Blog 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's blog 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...