languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2768 articles Updated Page 46 of 111
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 46 of 111
Newest first
-
Why We Abandoned Enums for Strings in Our .NET gRPC Service
Medium Issue #357
Here is the story of why we spent hours fighting the Protobuf specification, and why we ultimately decided to serialize our Enums as…
-
How Do C# Records Improve the Design of Data Transfer Objects (DTOs) in .NET Applications?
C# Corner Issue #357
Discover how C# records revolutionize DTO design in .NET! Learn why they're often superior to classes for data transfer, offering immutability, and value-based equality.
-
C# 14: From Helper Classes to First-Class APIs
C# Corner Issue #357
C# 14 extension members introduce extension properties, operators, and static members. Learn how they transform helper classes into first-class APIs and enable modern, expressive, and binary-safe .NET...
-
From Spec to Santa: My C#‑Powered Christmas Story Generator Experiment
Alexandre Nedelec's blog Issue #356
In this article, I will explain how I built a website to generate Christmas Stories my almost 5-year-old daughter using C# and AI related technologies (GitHub Spec Kit, GitHub Copilot, Microsoft.Exten...
-
Async Isn’t Magic
Medium Issue #356
It’s basically state machines, logical flows, and a little AsyncLocal.
-
[C# Tip] How to create and access custom C# Attributes by using Reflection
Code4IT Issue #355
In C#, Attributes are a handy mechanism to attach metadata to your classes, methods, properties, etc. In this article, we will see how to create custom Attributes and access them at runtime using Refl...
-
-
1 Simple Trick to Make Your C# Enums Smarter (And Why You’ll Never Go Back)
Medium Issue #355
Let’s be honest — C# enums are kind of like that one friend who shows up to the party but never says anything. They’re nice to have around…
-
C# Tuple: Organizing Multiple Business Data Points for Clear Insights
Medium Issue #355
Introduction
-
Write Code for Humans First, Machines Second
Medium Issue #354
In my career so far, I’ve worked with two kinds of .NET projects. Both were production systems, business-critical, and written in C#. Yet…
-
-
Record, Record Struct, and Structural Equality in C#
C# Corner Issue #354
Learn how structural equality works in modern C# using records and record structs, and why it is essential for building correct value objects in Domain-Driven Design. This guide explains when to use r...
-
How yield return Reduces Memory by 90% in C#
Medium Issue #354
How stateful iteration cuts memory usage by 90% in .NET — with real-world code examples and performance benchmarks.
-
The New field Keyword Improves Properties in C# 14
Medium Issue #354
How C# 14 finally eliminates boilerplate in properties — without sacrificing encapsulation, validation, or flexibility.
-
No Console.WriteLine for fun
Medium Issue #353
As a non-traditional software developer, I always skip using debugger mode and add 1000s of lines of Console.WriteLine to know what is…
-
LINQ in C#: The Superpower You Didn’t Know You Already Have
Medium Issue #353
Learn LINQ the easy way with practical examples, beginner-friendly explanations, and exercises. Continue reading on Towards Dev »
-
Understanding Delegates in C#
C# Corner Issue #353
Delegates in C# are type-safe references to methods that enable flexible, reusable, and loosely coupled code. They power events, callbacks, and asynchronous operations, with built-in types like Action...
-
The Full Stack Developer is a Myth (And It’s Ruining Your Career)
Medium Issue #352
Why trying to be a “Senior” in both .NET and React is making you mediocre at both.
-
Dependency Injection (DI) in ASP.NET Core (without magic)
Medium Issue #352
When I first started with ASP.NET Core, Dependency Injection sounded scary. People talked about “IoC containers”, “lifetimes”, and other…
-
One Minute Knowledge: Is ToArrayAsync or ToListAsync faster for Entity Framework?
Steven Giesel Issue #352
Short question, and a short answer: ToListAsync - but why?
-
Build a Social Media Commander app with Agent Instructions using GitHub Copilot | MVP Unplugged
YouTube Issue #352
Host Justin Garrett, Microsoft Principal Customer Experience Program Manager, connects with Microsoft MVP Jeremy Sinclair to dive into Jeremy’s passion project: Social Media Commander—a cross-platform...
-
LINQ in Real Projects: 7 Patterns Every C# Developer Should Know
towardsdev.com Issue #352
Most developers only use LINQ for .Where() and .Select(). Continue reading on Towards Dev »
-
Creating a .NET CLR profiler using C# and NativeAOT with Silhouette
Andrew Lock | .NET Escapades Issue #352
In this post I look at how to create a simple .NET profiler. But instead of using C++, the profiler uses C# and NativeAOT with the Silhouette library
-
We Let Cursor Write Our .NET Code. Then “Stupid Bugs” Exploded — Here’s the Fix
Medium Issue #351
Last month we did what everyone is doing in 2025:
-
C# Access Modifiers: Private, Protected, Internal, Public
Medium Issue #351
Neyi, kimden, ne kadar gizliyoruz? Gerçek OOP tasarımının temelinde bu soru yatar.