languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2322 articles Updated Page 5 of 93
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 5 of 93
Newest first
-
The required Keyword in C# — The Feature That Killed Null Reference Bugs
medium.com Issue #484
A small keyword. A massive impact on how you build safe, modern .NET code.
-
Understand .NET ConfigureAwait(), .Result and await
medium.com Issue #483
Imagine you’re going to a bank to file some paperwork.
-
Workshop: Build a Console Menu in C#
medium.com Issue #483
A hands-on recipe for wiring up a do/while loop, a switch statement, and real product data into a working interactive console app.
-
New lines are more than and
meziantou.net Issue #483
When we talk about new lines, most developers think about (Windows) and (Unix-like systems). That works most of the time, but it is not the full picture. Unicode and several regex engines reco...
-
Why Senior .NET Developers Never Use string.Split — And What They Use Instead
medium.com Issue #483
A practical deep dive into zero-allocation C# for developers who want to write production-grade code Continue reading on CodeToDeploy »
-
CancellationToken in C# Async/Await: The Complete Guide
medium.com Issue #483
If you have written more than a handful of async methods in C#, you have run into a method signature like this:
-
SOLID Principles in C# – Part 2: The Open/Closed Principle (OCP)
c-sharpcorner.com Issue #482
Learn the Open/Closed Principle (OCP) in C#: extend functionality without modifying existing code. Master OCP for robust, scalable software.
-
C# 15 Union Types: A Cleaner Way to Model “One of These” Values
medium.com Issue #482
C# 15 is introducing “union types”, for modeling values that can be exactly one of several known types. Now, you do not have to rely on…
-
SOLID Principles in C# – Part 3: The Liskov Substitution Principle (LSP)
c-sharpcorner.com Issue #482
Master Liskov Substitution Principle (LSP) in C#. Ensure subclasses honor base class contracts for predictable polymorphism.
-
C# Lambda Expressions and LINQ: The Two Features That Changed How I Write Code
medium.com Issue #481
When I first started writing C# I used foreach loops for everything. Filter a list — foreach loop. Find one item — foreach loop. Transform…
-
The Bug That Only Showed Up After Midnight. Welcome to Timezones
medium.com Issue #481
Some bugs you can reproduce any time. This one waited until 11 PM to ruin my evening. If you’ve ever shipped software with a date in it…
-
SOLID Principles in C# Series - Part 1: Single Responsibility Principle (SRP)
c-sharpcorner.com Issue #481
Kick off our 5-part SOLID Principles series with the Single Responsibility Principle in C#. Learn what SRP means, see real Before/After code examples, and discover how to apply it in an HRMS project.
-
How to Apply Multiple Font Styles in Excel Using C#
medium.com Issue #481
When automating Excel report generation in .NET applications, applying distinct font styles is essential for improving data readability…
-
How I Fixed a Production Crash Caused by Duplicate Keys in C#
medium.com Issue #481
A few weeks ago, an ASP.NET application suddenly started failing in production. The strange part was that everything worked perfectly in…
-
Learning Playwright with C#: My Journey Implementing a DI-Driven Test Framework
medium.com Issue #481
Following Karthik KK’s Playwright course, I rebuilt a DI-driven automation framework and documented the lessons I learned along the way.
-
LINQ in C#: All(), Any(), and Contains():Expressing Domain Truth in C#
medium.com Issue #481
Quantifiers, Membership, and Domain Truth
-
Building a Tool-Calling AI Agent in C# with .NET, SQLite, and Llama 4
medium.com Issue #481
Exploring AI tool calling, agent loops, and real-world AI integration using C# and .NET.
-
5 Hidden .NET Features Most Developers Still Aren’t Using (With Practical Examples)
blog.gopenai.com Issue #480
When people talk about .NET, they usually focus on the big announcements — new C# syntax, performance improvements, or the latest… Continue reading on GoPenAI »
-
Integrating AI with .NET Using the Official MCP C# SDK v1.0
medium.com Issue #480
From .NET Services to AI-Callable Tools — A Practical Guide Continue reading on Simform Engineering »
-
Design Patterns in C# — Real Enterprise Examples That Actually Work in Production
medium.com Issue #480
Stop memorising UML diagrams. Start seeing patterns in the code you write every day.
-
How to Programmatically Extract Text from a PDF using C# and a .NET PDF API
mesciusinc.medium.com Issue #480
PDFs are great for preserving document layout, but extracting usable text from them can be a different story. Whether you are building a…
-
Five Modern C# Features Every .NET Developer Should Know
c-sharpcorner.com Issue #480
Master modern C# features like primary constructors, field keyword, records, pattern matching, and required members for cleaner .NET development.
-
Stop Wasting CPU Cycles: Where vs. TakeWhile in LINQ
medium.com Issue #480
We have all been there: you are writing a LINQ query to filter a collection, and your fingers automatically type .Where(). It’s muscle…
-
-
The Most Expensive 4 Lines of C# I’ve Ever Seen
medium.com Issue #480
Six hours of downtime. 38,000 lost orders. Every dashboard green the entire time.