C#

C# | News, how-tos, features, reviews, and videos

Stacking. Stacked building blocks.
facade of heavy duty bank vault

data structure / data explosion / volume / velocity

How to map object relationships using Dapper in ASP.NET Core

Take advantage of Dapper to create one-to-one, one-to-many, and many-to-many entity relationships in your ASP.NET Core applications.

binoculars looking watch outlook future

The key new features and changes in .NET 8

With Microsoft’s yearly .NET release just around the corner, it’s time to start thinking about the changes you will need to make to your code.

network speed

How to improve data access performance in EF Core

Take advantage of these 10 strategies to improve data access performance when using Entity Framework Core in your data-driven .NET applications.

avoid detour side step trap hole in floor arrow by lucadp getty images

How to handle null values in C#

Null pointer exceptions are no fun. You can avoid them and keep your code clean and maintainable by using these techniques to elegantly handle null values in C#.

detour sign

C# 12 boosts AOT compilation

Latest C# 12 preview introduces an experimental feature that allows generators to reroute code to provide context-specific optimization.

shutterstock 165430076 fishing fly fisherman fly casting in misty river in the woods

How to use the is and as operators in C#

Take advantage of the is and as operators in C# to perform casting operations elegantly and write code that is well structured, concise, and maintainable.

Conceptual cybersecurity system locks down a network of interconnected elements.

How to use API keys to secure web APIs in ASP.NET Core

Take advantage of API key authentication to control the access of applications and services to your Web APIs in ASP.NET Core.

Black and white heavy duty bank vault

How to work with Azure Key Vault in .NET Core

Azure Key Vault is a safe and secure place to store the tokens, keys, passwords, certificates, and other sensitive data used in your .NET Core applications. Here’s how to work with it in C#.

1 measure roi

How to use EventCounters in .NET Core

Take advantage of EventCounters in .NET Core to gain insights into your application’s performance in real time.

A developer works at a laptop in an office workspace, lines of code on screen.

Microsoft unveils C# Dev Kit for Visual Studio Code

The C# Dev Kit extension combines the C# extension with AI-powered code completion, solution management, and integrated testing.

Matryoshka /Russian nesting dolls > inheritance / sequencing / hidden layers

Composition vs. inheritance in OOP and C#

Understand the key concepts behind composition and inheritance that allow you to build reusable and flexible types in your .NET applications.

A leaping dog catches a flying disc, midair.

How to use advanced Dapper features in ASP.NET Core

Take advantage of stored procedures, query pagination, query caching, and other advanced Dapper feature to simplify data access and ensure high performance.

automated assembly line of robotic arms  and a conveyor belt

How to use factory-based middleware activation in ASP.NET Core

Factory-based middleware activation is a more flexible and dynamic approach to configuring and activating middleware components. Here’s how to take advantage of it in ASP.NET Core 7.

leaky faucet by Maarten Van Damme, CC BY 2.0 via Flickr

How to use the rate limiting algorithms in ASP.NET Core

Learn how to use the fixed window, sliding window, token bucket, and concurrency algorithms in ASP.NET Core 7 to protect your applications and APIs against malicious attacks or overuse.

car speedometer

How to use response compression in ASP.NET Core

Take advantage of response compression middleware in ASP.NET Core to reduce bandwidth requirements and improve the responsiveness of your apps.

Developers work together to review lines of code in an office workspace.

Microsoft .NET Community Toolkit 8.2 shines on MVVM

Custom attributes for [RelayCommand], new property change hooks for [ObservableProperty] fields, MVVM code fixers, and MVVM source generator optimizations are also featured in the update.

hip young man blowing up blue balloon

How to use request decompression in ASP.NET Core 7

Take advantage of the request decompression middleware in ASP.NET Core 7 to enable your API endpoints to accept requests that contain compressed content.

Developers work together to review lines of code in an office workspace.

Applying the DRY, KISS, and YAGNI principles in C#

If you don’t repeat yourself, keep it simple, and implement only the functionality you really truly need, your C# code will be cleaner, simpler, and much easier to maintain.

Load More