languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2322 articles Updated Page 24 of 93
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 24 of 93
Newest first
-
10 Reasons to Upgrade to .NET 10
antondevtips.com Issue #379
Explore reasons to upgrade to .NET 10 and C# 14: Long-Term Support (LTS) Release, Performance improvements in ASP.NET Core and .NET, File-Based Apps, Server-Sent Events (SSE), Extension Members in C#
-
Nobody Tells You How ASP.NET Core Uses Reflection and Attributes to Wire Controllers and Routes
medium.com Issue #378
Have you ever spent hours debugging why your ASP.NET Core API routes aren’t hitting or why your model binding silently fails? You’re not…
-
C # 14 in .NET: What is New and Improved
medium.com Issue #378
C# 14 is expected to arrive with .NET 10, and it continues Microsoft’s long-term goal of making C# one of the most powerful, safe, and…
-
Combining the Factory and Strategy Patterns
nodogmablog.bryanhogan.net Issue #378
Download full source code. I was recently talking with a friend about the factory and strategy patterns, how they could be used together. He was familiar with the factory, but not the strategy. The ...
-
Code opinion: why I prefer avoiding the Async suffix in C# asynchronous methods
code4it.dev Issue #377
Should every asynchronous method name end with Async? Does it bring more benefits or more downsides? Let’s reason about this habit, which is common among C# developers.
-
Nobody Tells You How Records and Immutability Changed My C# Code — And Why You Should Care
medium.com Issue #377
Have you ever struggled with unexpected bugs because your objects changed state unexpectedly? Or wasted time writing boilerplate code for…
-
Building Zero-Allocation Parsers in C# .NET
jordansrowles.medium.com Issue #377
Creating a zero allocation parser in C# using ref struct.
-
10 C# Features You’re Probably Using Wrong
c-sharpcorner.com Issue #377
Avoid common C# pitfalls! Learn to use async/await, LINQ, records, and other features correctly for better performance, readability, and maintainability. Level up your C# skills!
-
Add Images to PDFs in C#: The Definitive Guide for Modern .NET Projects
medium.com Issue #376
If you’ve ever needed to add images to PDF in C#, you know it’s more than a checkbox on a requirements list. Whether you’re generating…
-
Exception Handling in C#: Why Your App Still Crashes Even With Try-Catch
medium.com Issue #376
I used to think my application was “safe” because I wrapped everything in try-catch.
-
Dotnet vs. Java in 2026: One for the Brain, One for the Backbone.
medium.com Issue #376
Hi everyone. I am a .NET developer. I’m new to writing blogs, and my English is not perfect. I make spelling mistakes and my sentences are…
-
How to Improve Performance in C# Applications
c-sharpcorner.com Issue #375
Boost C# app performance! Learn proven techniques: reduce allocations, use async, optimize data structures, and more. Build faster, scalable, reliable apps.
-
Collection Performance: High-Performance Collection Randomization in .NET
dotnettips.wordpress.com Issue #375
The article examines shuffling options in .NET 8, highlighting the performance of three APIs: LINQ.Shuffle(), Random.Shuffle(), and RandomNumberGenerator.Shuffle().
-
.NET 10 and C# 14 — Unbound generic types and nameof
henriquesd.medium.com Issue #375
Before C# 14, if you wanted to get the name of a generic class, like Logger, you could use the nameof operator, but you could not just refer to the class itself, instead, the compiler required you to ...
-
Result Pattern in C#
medium.com Issue #375
Learn how to handle errors without exceptions using a functional approach that makes your code cleaner and more maintainable.
-
Why Choosing the Wrong C# Collection Slowly Breaks Your Code
medium.com Issue #375
Choosing the right collection in C# is more than a coding detail — it’s a key design decision that affects your app’s stability…
-
Is C# Still Worth Learning for .NET Development?
c-sharpcorner.com Issue #374
Explore why C# remains a top choice for .NET development in 2026. Discover its job market demand, enterprise use, cloud capabilities, and beginner-friendly nature.
-
Encrypting Properties with System.Text.Json and a TypeInfoResolver Modifier (Part 1)
stevejgordon.co.uk Issue #374
In this multi-part blog series, we’ll build a reasonably full-featured code base for automatically encrypting/decrypting specific properties on types that are being serialised and deserialised using S...
-
How Does Garbage Collection Work in C#?
c-sharpcorner.com Issue #374
Unlock C#'s automatic memory management! Learn how garbage collection reclaims unused memory, preventing leaks and boosting performance. A must-read for C# developers!
-
What Are Delegates and Events in C#?
c-sharpcorner.com Issue #374
Unlock the power of C#! Learn delegates and events step-by-step with clear explanations and real-life examples. Master flexible communication and build robust applications.
-
Understanding this, base, and the Builder Pattern in C#
c-sharpcorner.com Issue #374
Demystifying C# object creation! Learn when to use 'this', 'base', and the Builder Pattern for efficient, readable code. Master constructor chaining and inheritance.
-
.NET 10 and C# 14 — The field keyword
henriquesd.medium.com Issue #374
In C#, we have two main options to use properties: Auto-implemented properties, which are concise but do not allow you to add logic in the property accessor, and the Manual properties, which require a...
-
Conditional Statements in C#
c-sharpcorner.com Issue #373
Master C# conditional statements! Learn to use if, if-else, switch, and the ternary operator for decision-making in your code. Includes practical examples and tips.
-
JavaScript to Blazor: Why C# Frontend Development Is the Future for Developers in India and Worldwide
c-sharpcorner.com Issue #373
Discover Blazor, the C# framework revolutionizing web development! Learn how it simplifies full-stack development, benefits .NET developers, and impacts the Indian tech scene.
-
.NET 10 and C# 14 — Extension members
henriquesd.medium.com Issue #373
Now, in C# 14, we have Extension Members, which allow us to add static members, such as methods and properties, to a type via an extension. For example, this is an extension method that checks if a st...