languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2640 articles Updated Page 18 of 106
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 18 of 106
Newest first
-
C# 15 Union Types: A Cleaner Way to Model “One of These” Values
Medium 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# Corner 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 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 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# Corner 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 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 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 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 Issue #481
Quantifiers, Membership, and Domain Truth
-
Building a Tool-Calling AI Agent in C# with .NET, SQLite, and Llama 4
Medium 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 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 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
Medium 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# Corner 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 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 Issue #480
Six hours of downtime. 38,000 lost orders. Every dashboard green the entire time.
-
Migrating Agentic Code Python -> C# Part 4
YapCast – Jesse Liberty Issue #480
In the previous blog post we looked at the Blogger (orchestrator) code in C#. Let’s move on to some of the other agents. The Blogger invokes the Researcher, so let’s go there next. The Researcher clas...
-
Lock in C# 13 — Replacing lock(obj) with Something Better
Medium Issue #479
We have used lock(object) for nearly 20 years. C# 13 doesn’t remove it. It just gives us something more intentional to reach for instead.
-
Microsoft Extends Rust-Influenced Memory-Safety Push to C# - Visual Studio Magazine
""charp" OR "asp.net" OR "fsharp" OR "c#" OR "vb.net" " - Google News Issue #479
PENDING REVIEW: MICROSOFT ARTICLE UNRETRIEVABLE (INSUFFICIENT FULL TEXT). Microsoft Extends Rust-Influenced Memory-Safety Push to C# Visual Studio Magazine
-
Structured Outputs in LLM Applications: A Complete C# Developer Guide
C# Corner Issue #479
Learn how to implement structured outputs in C# AI applications. Discover schema validation, strongly typed models, JSON responses, and best practices for building reliable enterprise LLM solutions.
-
How to Build Offline AI Applications in .NET Without Cloud Dependencies
C# Corner Issue #478
Build offline AI apps in .NET without cloud. Leverage local models like Phi & tools like Ollama for privacy, cost savings, and faster responses.
-
C# 15 New Features and Improvements Developers Need to Explore
C# Corner Issue #478
Explore C# 15's new features: primary constructors, collection expressions, pattern matching, async enhancements, and more. Boost productivity and code quality!
-
C#: How to Refactor Legacy Code Safely
Chris Pietschmann Issue #478
Legacy C# code is usually not dangerous because it is old. It is dangerous because you do not fully know which parts are stable, which parts are accidentally correct, and which parts are one small cha...