languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2552 articles Updated Page 24 of 103
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 24 of 103
Newest first
-
What is the Difference Between Record Struct and Class in C#?
C# Corner Issue #432
Unlock the secrets of C#! Learn the key differences between record struct and class for optimal performance and maintainability. Master data type selection!
-
LINQ Performance Pitfalls Every C# Developer Should Know
Medium Issue #432
Two subtle choices — IEnumerable vs IQueryable, and Func vs Expression — can mean the difference between a fast query and a silent…
-
Why Modern C# Encourages Functional Programming Concepts
C# Corner Issue #432
Explore how modern C# embraces functional programming with LINQ, lambdas, records, and pattern matching for cleaner, safer, and more maintainable code.
-
What Are Primary Constructors in C# 12 and Their Benefits?
C# Corner Issue #432
Discover C# 12's primary constructors! Simplify code, boost readability, and reduce boilerplate. Learn how they streamline data models and dependency injection.
-
How to Fix “Object Reference Not Set to an Instance of an Object” in C#?
C# Corner Issue #431
Master the dreaded 'Object reference not set' error in C#! Learn to identify, fix, and prevent NullReferenceExceptions with practical C# and ASP.NET Core examples.
-
How to Optimize Memory Usage with C# Garbage Collection
C# Corner Issue #431
Unlock C# garbage collection! Learn how it works, optimize memory usage, and boost performance in ASP.NET Core apps. Essential for scalable .NET development.
-
C# Data Types: Different Boxes for Different Stuff (Part 7)
Medium Issue #431
How to choose the right “container” for your data
-
C# Records Explained Like a Pro
Medium Issue #431
(With Real-World Use Cases & Performance Insights)
-
Stop NullReferenceExceptions in C# Before They Break Your App
Medium Issue #430
A NullReferenceException occurs when you try to access a member (method, property, index) of an object that is currently null.
-
async/await in C#: What Actually Happens
Medium Issue #430
I kept hearing that async/await makes code “run in the background” or “makes things faster,” but that never fully made sense to me.
-
Why Async/Await Changed the Way We Think About Concurrency
C# Corner Issue #430
Explore how async/await revolutionized concurrency in C#. Learn how it simplified asynchronous programming, improved scalability, and shifted developer thinking in .NET.
-
Difference Between Abstract Class and Interface in C# With Examples
C# Corner Issue #430
Explore the nuances of Abstract Classes vs. Interfaces in C#. Learn their key differences, use cases, and real-world examples for better C# development.
-
C# Programming Language Guide
C# Corner Issue #429
This document is content of my research, it has piece of paragraphs that I have gained from the official vendor of .NET and C# programming language which is Microsoft.
-
How to Implement a Binary Search Algorithm in C# With Example
C# Corner Issue #429
Master Binary Search in C#! This guide covers iterative & recursive implementations with clear examples, optimization tips, and real-world applications. Boost your search efficiency!
-
Talking to Users: How C# Shows Output (Part 4)
Medium Issue #429
Making your programs speak to the world (and to you!)
-
C# Mistakes That Are Silently Slowing Down Your Code
Medium Issue #429
Most C# developers don’t realize a thing. Your code might be working perfectly but still performing badly. No errors. No crashes. Just…
-
Source code generated string enums with exhaustion support
Steven Giesel Issue #429
Some time ago (over 4.5 years ago!) I wrote a blog post titled: "A better enumeration - Type safe from start to end". While cool and so - it had some issues. Let's tackle them!
-
Explore union types in C# 15
Microsoft Dev Blogs Issue #429
C# 15 introduces union types — declare a closed set of case types with implicit conversions and exhaustive pattern matching. Try unions in preview today and see the broader exhaustiveness roadmap. Th...
-
What is the Difference Between Task and Thread in C#?
C# Corner Issue #429
Unlock C# concurrency! Master the difference between Tasks and Threads with our easy-to-understand guide. Boost performance & write scalable .NET apps.
-
Leaving Notes for Yourself: The Magic of C# Comments (Part 5)
Medium Issue #429
Your future self will thank you for writing these!
-
Entity vs DTO vs ViewModel in ASP.NET Core: What Every .NET Developer Must Know
Medium Issue #428
Early in my career building enterprise .NET applications, I made a mistake I see constantly in code reviews and mock interviews: I…
-
Top Core Concepts Every Senior C#/.NET Developer Should Know in 2026
Medium Issue #428
The .NET ecosystem has never moved faster. From minimal APIs and cloud-native architecture to AI integration and advanced concurrency —…
-
A Comprehensive Guide to C# .NET Input Controls
Medium Issue #428
Input controls are fundamental to any .NET application. They govern how users provide data and directly influence the integrity, usability… Continue reading on MESCIUS inc. »
-
.NET CLI Shebangs and Argument Parsing
no dogma blog Issue #427
I’ve been using the dotnet run app.cs CLI applications for a little while. Until now, I had no problem with arguments passed in, but today I added a -v option to my application to print out the versio...
-
Why My .NET HttpClient Kept Getting 403 Forbidden Until I Forced HTTP/1.1
Medium Issue #427
Browsers worked. The API endpoint worked in Postman. A basic .NET client did not.