languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2640 articles Updated Page 12 of 106
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 12 of 106
Newest first
-
Mastering Dependency Injection in ASP.NET
Medium Issue #511
Learn Dependency Injection (DI) in ASP.NET Core Web API from scratch with practical examples, lifetime management, interfaces, service…
-
From Keywords to Meaning: Building Semantic Vector Search in .NET
Medium Issue #511
Traditional search finds keywords. Vector Search finds meaning.
-
OpenTelemetry in Microsoft Agent Framework Apps
YapCast – Jesse Liberty Issue #511
Observability has become a critical component for ensuring the performance and reliability of applications. OpenTelemetry, an open-source observability framework, provides developers with the tools ne...
-
One Tiny C# 14 Feature That Quietly Deletes an Entire if Statement
Medium Issue #510
I can’t count how many times I’ve written code like this:
-
-
Mastering Extension Methods in C#: Clean Up Your ASP.NET Core Controllers
Medium 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# Corner 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 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 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 Issue #509
List and Dictionary are probably the collections we use the most in C#.
-
Reduce C# Memory Usage 50x: IAsyncEnumerable Guide
Medium Issue #509
How switching from ToListAsync() to IAsyncEnumerable cut peak memory 50x in a .NET
-
C# Task Parallel Library (TPL) overview
Medium 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# Corner 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# Corner 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 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# Corner 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# Corner 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 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 Issue #507
ICloneable is a built-in .NET interface with a single method object Clone();
-
C# 14 Union Types with Practical Examples
C# Corner 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 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 Issue #507
Understanding OrderBy(), OrderByDescending(), ThenBy(), Reverse(), Select(), and SelectMany()
-
Machine Learning with ML.NET: Two Practical Series
Medium 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# Corner 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# Corner Issue #506
Discover C# 14's key features: enhanced collection expressions, pattern matching, null safety, and compiler optimizations for .NET developers.