languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2386 articles Updated Page 2 of 96
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 2 of 96
Newest first
-
-
Mastering Extension Methods in C#: Clean Up Your ASP.NET Core Controllers
medium.com Issue #509
When building ASP.NET Core Web APIs, developers often struggle with controller bloat. Controllers can become cluttered with repeated…
-
The Secret Behind .NET Performance: Understanding Garbage Collection Generations (Gen 0, Gen 1 & Gen 2) in C#
c-sharpcorner.com Issue #509
Unlock .NET performance secrets! Understand Garbage Collection generations (Gen 0, Gen 1, Gen 2) and how they optimize memory management in C#.
-
Day 5: Understanding the ‘Why’ Behind C# Features
medium.com Issue #509
Today wasn’t about learning more syntax — it was about understanding why C# is designed the way it is.
-
Domain-Driven Design in C#: A Practical Guide to DDD in .NET
medium.com Issue #509
Learn how to implement Domain-Driven Design in C# and .NET using Entities, Value Objects, Aggregates, Domain Events, Repositories, and…
-
Thread-Safe Collections in C#: Why Dictionary Can Break Under Parallel Execution
medium.com Issue #509
List and Dictionary are probably the collections we use the most in C#.
-
Reduce C# Memory Usage 50x: IAsyncEnumerable Guide
medium.com Issue #509
How switching from ToListAsync() to IAsyncEnumerable cut peak memory 50x in a .NET
-
C# Task Parallel Library (TPL) overview
medium.com Issue #509
TPL is Microsoft’s framework for writing parallel and asynchronous code in .NET. It lives in System.Threading.Tasks and is the foundation…
-
C# 14 New Features Explained with Practical Examples
c-sharpcorner.com Issue #508
Explore C# 14's new features: Extension Members, Collection Expressions, Pattern Matching, Primary Constructors, Null Safety, and .NET integration.
-
C# Union Types Explained: What's New in .NET 11 and When to Use Them
c-sharpcorner.com Issue #508
Explore C# Union Types in .NET 11! Learn how they simplify handling multiple outcomes, improve type safety, and lead to cleaner, more maintainable code.
-
Top 30 .NET Interview Questions for 2+ Years Experience (With Simple Answers & Examples) — Part 1…
medium.com Issue #508
Preparing for a .NET interview can be overwhelming, especially when there are hundreds of concepts to learn.
-
Garbage Collection in C#: How .NET Automatically Manages Memory
c-sharpcorner.com Issue #507
Learn how .NET's Garbage Collection automatically manages C# memory, preventing leaks and improving app reliability by reclaiming unused objects.
-
Advanced LINQ Performance: Hidden Costs Every C# Developer Should Know
c-sharpcorner.com Issue #507
Unlock LINQ's power in C#! Discover hidden performance costs and learn practical techniques for efficient, production-ready code.
-
Delete AutoMapper: explicit, compile-time DTO mapping that you can actually test
medium.com Issue #507
Reflection-based mappers feel like they save you work until the day a renamed property silently maps to null in production. Here is the…
-
What is the ICloneable interface and how is it used?
medium.com Issue #507
ICloneable is a built-in .NET interface with a single method object Clone();
-
C# 14 Union Types with Practical Examples
c-sharpcorner.com Issue #507
Explore C# 14 Union Types: a powerful feature for cleaner, type-safe code. Learn practical examples and benefits over traditional approaches.
-
Write Better C# with These 15 Productivity Tricks
medium.com Issue #507
As C# continues to evolve, it introduces features that make code cleaner, more expressive, and easier to maintain. Whether you’re a…
-
LINQ in C#: The Complete Beginner’s Guide with Practical Examples (Part 3)
medium.com Issue #507
Understanding OrderBy(), OrderByDescending(), ThenBy(), Reverse(), Select(), and SelectMany()
-
Machine Learning with ML.NET: Two Practical Series
medium.com Issue #506
Over the past few weeks, I’ve published two article series about Machine Learning with ML.NET, exploring practical AI applications within… Continue reading on .Net Programming »
-
Check if an Array Can Represent Preorder Traversal of a BST
c-sharpcorner.com Issue #506
Learn how to validate if an array represents a BST's preorder traversal using a stack and lower bound logic. Efficient O(n) solution.
-
What's New in C# 14: Features Every .NET Developer Should Know
c-sharpcorner.com Issue #506
Discover C# 14's key features: enhanced collection expressions, pattern matching, null safety, and compiler optimizations for .NET developers.
-
Mastering Channels in C#: Async Producer/Consumer With Backpressure
medium.com Issue #506
From first principles to a production ingestion pipeline: backpressure, completion, and fault propagation done right
-
Interfaces in C#: The Complete Practical Guide Every .NET Developer Should Master
c-sharpcorner.com Issue #505
Master C# interfaces: the contract that separates 'what' from 'how', enabling flexible, testable, and maintainable .NET applications.
-
I Squeezed 100 C# Concepts Into 100 Minutes. Here’s Why.
medium.com Issue #505
A few weeks ago I was answering the same question for maybe the tenth time: “Where do I actually start with C#?”
-
Mastering Async Streams in C#: IAsyncEnumerable Guide
medium.com Issue #505
Stream data as it arrives in C#. Master IAsyncEnumerable, await foreach, cancellation gotchas, Channels, and .NET 10's built-in async LINQ