C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2334 articles Updated Page 24 of 94
C# articles, tutorials, and news from the DotNetNews archive.
C# articles
Page 24 of 94
Newest first
-
C# Random: The Definitive Guide to Reliable Random Numbers in .NET
medium.com Issue #382
Generating random numbers in C# is a fundamental task that frequently surfaces during critical workflows for a .NET Developer. Whether…
-
Demystifying async/await in C#: The Hidden State Machine
c-sharpcorner.com Issue #382
Internal working on async/await in C#
-
.NET 10 and C# 14: The Game Has Changed
c-sharpcorner.com Issue #381
.NET 10 and C# 14: The Game Has Changed A principal engineer's perspective on why this release matters
-
Zeta: It’s Time to Rethink Validation in .NET
medium.com Issue #381
For most of my career, FluentValidation has been the unquestioned default for validation in .NET.
-
5 Most Confusing .NET Interview Questions – Explained for Beginners (With Simple Examples) (Part-1)
c-sharpcorner.com Issue #381
Ace your .NET interview! Demystifying async/await, dependency injection, service lifetimes, IEnumerable vs IQueryable, and middleware with clear examples. Master these fundamentals!
-
Events in C# Explained with a Real-World Example
c-sharpcorner.com Issue #381
Learn C# events with a real-world patient recovery scenario! Master the publisher-subscriber pattern, EventHandler<TEventArgs>, and build loosely coupled applications. Ideal for beginners!
-
String Performance: The Fastest Way to Get a String’s Length
dotnettips.wordpress.com Issue #380
Retrieving the character count of a string in .NET has various methods: using Span with Length, Length, or Enumerable.Count(). This article will prove which is the fastest method.
-
AddTransient vs AddScoped vs AddSingleton in .NET Core (With Examples)
medium.com Issue #380
Dependency Injection (DI) is a core feature of .NET Core. It helps create loosely coupled, testable, and maintainable applications.
-
Making foreach on an IEnumerable allocation-free using reflection and dynamic methods
andrewlock.net Issue #380
In this post I describe why foreach sometimes allocates, and show how you can use DynamicMethod and Reflection.Emit to go allocation-free
-
How to Remove Specific or Blank Pages from Word Using C# (A Step-by-Step Guide)
medium.com Issue #380
When working with Word documents, one problem we often encounter is unwanted pages — blank pages at the end of a report, cover pages we…
-
Create your own Roslyn Analyzer !!
medium.com Issue #380
As the title indicates, today we are going to talk about code analyzers and more precisely Roslyn Analyzers, the famous .net compiler. The…
-
Factory Method Pattern in C#
c-sharpcorner.com Issue #379
Learn how to implement the Factory Method Pattern in C# with dependency injection for loosely coupled object creation. Improve code maintainability and extensibility.
-
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().