languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2466 articles Updated Page 47 of 99
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 47 of 99
Newest first
-
C# Events Explained: Learn with a YouTube Example
medium.com Issue #308
Have you ever wondered how apps notify you when something happens? Like when YouTube tells you your favorite creator uploaded a new video…
-
Claude Code vs GitHub Copilot: Which is Better for .NET / C# Devs?
c-sharpcorner.com Issue #308
Struggling to choose between GitHub Copilot and Claude Code for .NET/C# development? This 2025 comparison dives deep, analyzing context awareness, code completeness, testing, and more. Discover which ...
-
Static Class vs Singleton Pattern 🔄
c-sharpcorner.com Issue #307
Explore the nuances between Static Classes and the Singleton Pattern in C#. This article provides a detailed comparison, covering memory usage, performance, inheritance, thread safety, testing, and pr...
-
Mastering C# Strings: Manipulation, Formatting, and Comparison
medium.com Issue #307
When working with C#, one of the most frequently used data types is the string. Whether you’re building a console application, a web API…
-
C# 14: User-Defined Compound Assignment and Smarter Null-Conditional Assignment
medium.com Issue #307
Write safer, more expressive C# 14 code with user-defined compound assignments and concise null-conditional assignments for custom types. Continue reading on .Net Programming »
-
C# 12 Features Mastery Part 4 - Primary Constructors, Records, Pattern Matching for ASP.NET Core
c-sharpcorner.com Issue #307
Master C# 12's essential features for ASP.NET Core development! Part 4 dives into primary constructors (reducing boilerplate), records (immutable data), advanced pattern matching (smarter code flow), ...
-
C# is fixing a thing that irritated me!
blog.jermdavis.dev Issue #306
For a long time a small thing in writing Razor code for Sitecore (and in some other places) has irritated me. It's not really very important, but with the new version of C# there is finally a way to r...
-
A New Era of Developer Productivity with Vibe Coding with C# 13
c-sharpcorner.com Issue #306
C# 13 and vibe coding revolutionize developer productivity by reducing boilerplate, simplifying patterns, and promoting clean architecture. Learn how primary constructors, pattern matching, intercepto...
-
Difference Between Prompt Engineering and Context Engineering
c-sharpcorner.com Issue #306
Prompt Engineering teaches AI what to do; Context Engineering teaches AI what matters. Learn the difference between prompt and context engineering, their roles in generative AI, and how they shape the...
-
How to Disarm and Reconstruct Files in C#
cloudmersive.medium.com Issue #306
In this brief article, we’ll provide context for Content Disarm and Reconstruction (CDR) file sanitization in threat scanning workflows…
-
Polymorphism in C#: One Action, Many Forms
medium.com Issue #306
When I first heard the word polymorphism, I thought it sounded more like a biology term than a programming concept. Honestly, it felt like…
-
Understanding the Difference Between `readonly` and `const` in C#
medium.com Issue #306
Discover why these two keywords behave differently and how misunderstanding them can cause subtle bugs.
-
C# Without null: Implementing Option and Result Types in .NET
medium.com Issue #306
If your codebase looks like a haunted house of if (x == null) return;, it’s not “defensive.” It’s indecisive. Instead of sprinkling null…
-
C# at Scale: What I Learned Moving from Side Projects to Production Systems
medium.com Issue #305
The hard lessons of performance tuning, async pitfalls, and memory management in real-world .NET applications Continue reading on .Net Programming »
-
Cursor Introduces Plan Mode
c-sharpcorner.com Issue #305
Cursor's new Plan Mode boosts AI-assisted coding with structured plans, codebase research, and editable Markdown. Improve code quality & accuracy!
-
Modernizing Legacy C# Code: Refactoring Strategies Every Developer Should Know
c-sharpcorner.com Issue #305
Discover practical refactoring strategies using LINQ, pattern matching, and async/await. Learn how to simplify loops, improve string handling, implement proper logging, and leverage IHttpClientFactory...
-
Scaling .NET APIs with Ease: How I Used C# to Handle Millions of Requests
medium.com Issue #305
How I Rebuilt My API Infrastructure to Handle Load, Caching, and Concurrency the Right Way Continue reading on .Net Programming »
-
Interfaces in .NET: Building Robust and Maintainable Applications
medium.com Issue #305
Refined Topics
-
7 Types of Constructors in C#
medium.com Issue #305
Constructors are special methods that execute automatically when an instance of a class is created.
-
Validate Email Addresses with Regular Expressions in C#
c-sharpcorner.com Issue #305
Learn how to effectively validate email addresses in C# using regular expressions (regex). This guide covers practical regex patterns, from simple checks to more robust RFC-like validation. Explore sa...
-
⚡ Understanding Span and Memory in C#: The Hidden Power Behind Modern High-Performance .NET
mohit8830.medium.com Issue #304
List<T> = Flexible but slow (heap-based, many allocations) Span<T> = Ultra-fast, stack-based, local memory access Memory<T> = Async-safe…
-
How to Create a Custom .NET Package and Import It Locally
medium.com Issue #304
Creating a custom package is a great way to reuse common code across multiple projects.
-
Unsafe Code in C#: When and Why It’s Worth It
medium.com Issue #304
Discover how unsafe code in .NET lets you trade safety for speed, master pointers, and optimize performance-critical applications.
-
20 Killer C# One-Liners
medium.com Issue #304
A senior-dev grab bag of 20 practical C# one-liners — guards, LINQ, JSON, async timeouts — each with when to use and pitfalls. Copy, paste… Continue reading on Programming Letters »
-
Extension Methods in C#: Write Cleaner, Smarter, and More Reusable Code
rahulyadav9053.medium.com Issue #304
Make your C# code more expressive and readable by using extension methods — the hidden gem behind LINQ and fluent APIs. Learn how to use…