languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2322 articles Updated Page 42 of 93
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 42 of 93
Newest first
-
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…
-
How .NET Code Works Behind the Scenes: Explained for Beginners
medium.com Issue #304
Ever wondered what really happens when you hit “Run” in a .NET app?
-
Advanced OOP Features in C#: Beyond the Four Pillars
medium.com Issue #304
When I first learned the four OOP pillars — encapsulation, inheritance, polymorphism, and abstraction — I thought I had unlocked the…
-
How the lock Keyword Works in C#: Thread Safety Demystified
medium.com Issue #304
Understand how the C# lock keyword prevents race conditions, how it works internally, and when to use advanced synchronization methods.
-
Master Static, Sealed, and Constructors in C# — Learn with a Real Bank Story
medium.com Issue #304
A beginner-friendly guide to understanding the most confusing C# keywords through a fun and realistic Bank example.
-
C# Channel Mastery: Advanced Patterns for Async Pros
blog.stackademic.com Issue #304
Part 5 in a beginner-friendly guide to thread-safe async messaging in .NET Continue reading on Stackademic »
-
Defensive Programming with Microsoft .NET: Anticipate Errors and Eliminate Bugs
dotnettips.wordpress.com Issue #303
This discusses the principles of defensive programming to enhance software development. It emphasizes error prevention strategies such as input validation, comprehensive error handling, and assumption...
-
The Specification Pattern in C#: Write Cleaner, More Maintainable Queries
medium.com Issue #303
Stop copying and pasting LINQ queries. Start writing reusable, testable specifications.
-
PLINQ in .NET: Supercharging LINQ with Parallelism
medium.com Issue #303
When performance meets simplicity
-
The Painful Truth About Over-Abstraction in C# — And How to Fix It
medium.com Issue #303
Practical fixes for leaner C#.
-
Use CancellationTokens
steven-giesel.com Issue #303
This is a very small blog post on why you should use CancellationTokens in your API.
-
Step-By-Step C# Scripting Guide For Unity Beginners
medium.com Issue #303
C# scripting plays a crucial role in modern game development and software programming due to its simplicity, power, and versatility.
-
C# Partial Constructors and Events Explained with Real-Life Bank Example
medium.com Issue #302
How Partial Classes Make Your Code Cleaner and Events Make It Smarter
-
🔴 VS Code Live - v1.105 Release
youtube.com Issue #302
Interesting new C# 14 features coming with .NET 10
-
Abstraction in C#: Hiding the Mess, Showing the Magic
medium.com Issue #302
When I first heard the term abstraction, I thought: “Is this about painting abstract art? Because I’m terrible at drawing.”
-
C# tips: string.IsNullOrEmpty vs string.IsNullOrWhiteSpace
c-sharpcorner.com Issue #301
Understand the crucial difference between string.IsNullOrEmpty and string.IsNullOrWhiteSpace in C#. This article clarifies when to use each method for effective string validation. Learn how IsNullOrWh...
-
You’re Still Writing C#/.NET Like It’s 2015 — Here’s the 2025 Way
levelup.gitconnected.com Issue #301
If your C# still starts with namespaces at the top, MVC controllers everywhere, and new JsonSerializerOptions() sprinkled around, you’re… Continue reading on Level Up Coding »
-
Constants vs Read Only variables in C#
medium.com Issue #301
In .NET, both constants and read-only variables serve the purpose of defining values that cannot be changed during the execution of a… Continue reading on .NET Framework with C#— Common and Uncommon »
-
-
Must-Know System Design for .NET Developers (Extended Edition)
medium.com Issue #301
The Ultimate Interview Prep Guide Continue reading on Let’s Code Future »