languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2322 articles Updated Page 28 of 93
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 28 of 93
Newest first
-
C# 14’s Null-Safe Member Assignment — Stop Writing Null Checks
codeexact.medium.com Issue #358
Say goodbye to verbose null-checking boilerplate. C# 14 introduces null-safe member assignment — a practical feature that lets you check…
-
Stop using Exceptions to control flow in .NET. It’s time to embrace the “Result” pattern.
medium.com Issue #358
Why try/catch blocks are ruining your API's readability and performance, and the functional approach senior developers use instead.
-
-
C# Channels Explained — From Producer-Consumer Basics to High-Performance .NET Systems
medium.com Issue #357
C# Channels provide a precise way to control flow, apply backpressure, and coordinate async work inside high-traffic .NET applications.
-
Why We Abandoned Enums for Strings in Our .NET gRPC Service
medium.com 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-sharpcorner.com 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-sharpcorner.com 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
techwatching.dev 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.com 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.dev 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...
-
Creating Objects Without a Model in C#
c-sharpcorner.com Issue #355
Creating Objects Without a Model in C#
-
1 Simple Trick to Make Your C# Enums Smarter (And Why You’ll Never Go Back)
medium.com 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.com Issue #355
Introduction
-
Write Code for Humans First, Machines Second
medium.com 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-sharpcorner.com 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#
dominika-sikorska.medium.com 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.com Issue #354
How C# 14 finally eliminates boilerplate in properties — without sacrificing encapsulation, validation, or flexibility.
-
No Console.WriteLine for fun
medium.com 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.com 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-sharpcorner.com 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.com 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.com 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.com 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.com 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...