C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2334 articles Updated Page 28 of 94
C# articles, tutorials, and news from the DotNetNews archive.
C# articles
Page 28 of 94
Newest first
-
The C# ‘Best Practice’ that is secretly killing your API performance
medium.com Issue #361
The “Best Practice” that is secretly exhausting your server’s sockets. Continue reading on Readers Club »
-
ToonEncoder — A JSON-Compatible Format Encoder for C# and LLMs
neuecc.medium.com Issue #360
I’ve created a serializer (encode-only) for Token-Oriented Object Notation (TOON), a JSON-compatible format. When used appropriately, TOON…
-
C# 14 Field Keyword: Simplifying Property Accessors
laurentkempe.com Issue #360
C# 14 introduces the field keyword, a contextual keyword that reshapes how we write property accessors. This feature eliminates the need for explicit backing fields while maintaining full control over...
-
Partial Constructors in C# 14 (.NET 10) - A Game-Changing Feature
c-sharpcorner.com Issue #359
C# 14 introduces Partial Constructors, a game-changer for .NET 10! Split constructor logic across files, enhance source generator support, and improve maintainability. Build modular, scalable applicat...
-
Building AI-Ready Applications with Model Context Protocol in C#
medium.com Issue #359
Learn how to build MCP servers and clients in C# using the official SDK, and connect your .NET applications with AI models in a standard…
-
What’s New in C# 14 (.NET 10): 7 Powerful Language Features Every C# Developer Should Know
c-sharpcorner.com Issue #359
Explore C# 14's powerful features in .NET 10! Boost productivity with extension members, extension operators, field keyword, null-conditional assignment, and more. Write cleaner, safer, and faster cod...
-
When Static Validations No Longer Have Power
medium.com Issue #358
Reconfigurable Request Validations Using Compiled Expressions in .NET
-
EF Core + LINQ: The Real-World Guide Every C# Developer Wishes They Had Earlier
towardsdev.com Issue #358
A practical, example-rich guide to understanding how LINQ behaves inside EF Core — with real problems, real fixes, and clean explana Continue reading on Towards Dev »
-
ToList() vs ToArray() in C#: The Performance Guide Every Developer Needs
towardsdev.com Issue #358
Most .NET developers default to ToList() without knowing it wastes 24–31% more memory. Here’s when to use ToArray() instead. Continue reading on Towards Dev »
-
Why Choose C# and .NET as My Programming Language?
news.google.com Issue #358
Why Choose C# and .NET as My Programming Language?
-
C# 14 Null-conditional Assignment: Complete Guide to Elegant Null Handling
laurentkempe.com Issue #358
If you've been working with C# since the introduction of null-conditional operators in C# 6.0, you've likely appreciated how ?. and ?[] simplified null-checking when reading values. But what about wri...
-
How to Build a High-Performance Cache Without External Libraries
milanjovanovic.tech Issue #358
Learn how to build a high-performance cache from scratch in .NET, moving from a simple ConcurrentDictionary to an optimized keyed-locking system. This deep dive explores how to master concurrency patt...
-
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