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

ballerina graceful dancer agile flexible
mechanic overhauling engine

puzzle missing piece

Use logging and DI in minimal APIs in ASP.NET Core 6

How to implement logging, read from the configuration system, and use dependency injection in minimal APIs in ASP.NET Core 6.

phone on a string cans communication

How to work with String.Create in C#

Take advantage of String.Create to create strings with no allocation overhead and improve the performance of your .NET 6 applications.

Plastic, magnetic letters in compartmented boxes.

How to compress and decompress strings in C#

Take advantage of the GZip and Brotli compression methods to reduce the size of string data and improve performance in your .NET Core applications.

jumping for joy

C# popularity surges in Tiobe programming language index

The Tiobe index rating for C# grew nearly 2% in the past 12 months, while the rating for C fell by nearly the same amount.

cloud computing build strategy

How to work with Azure Functions in C#

Take advantage of Azure Functions to run small pieces of code that can be triggered by events in the Azure cloud.

Jigsaw puzzle pieces coming together.

Build desktop and mobile UIs with Blazor Hybrid apps

.NET and Blazor bring the web development and mobile application worlds closer together.

astract code [Thinkstock]

C# 11 previews raw string literals, dumps parameter null checking

Next version of Microsoft’s flagship .NET language promises a variety of new features for better productivity and better performance.

Glass building

How to enforce architecture rules in C#

Take advantage of the NetArchUnit to enforce architecture rules in your application and ensure consistency of quality and standards.

mind the gap sign

How to work with disconnected entities in Entity Framework Core

Learn how you can track changes to entities while disconnected from the EF context in Entity Framework Core.

Spotlights on stage

Microsoft unveils C# 11 list patterns, raw string literals

Next version of Microsoft’s flagship programming language for .NET development will also simplify the syntax for parameter null checking.

artist ocean daydreamer canvas paint brush visualization

Getting started with Avalonia UI

The transition to .NET 6 has left some useful tools behind. The open source community is updating the ideas behind them for a new, cross-platform world.

Australia  >  Brisbane  >  Traffic / light trails / speed

How to work with IAsyncDisposable in .NET 6

Take advantage of the IAsyncDisposable interface to dispose of objects in a non-blocking way and make your .NET applications more efficient.

Windows 11 window logo

Microsoft .NET MAUI Preview 11 updates Windows UI styling

Latest preview of the successor to Xamarin.Forms introduces support for Windows 11 UI styles and multi-window applications on MacOS, iPadOS, and Windows.

multicolored neon lights 56402620

Demystifying the Program and Startup classes in ASP.NET Core

Program and Startup are the main classes for configuring .NET applications. Learn how to use them in ASP.NET Core 6.

multicolor flowchart design 91521493

Microsoft reveals plans for Entity Framework 7.0

Themes for the next version of the object-relational mapper for .NET include support for JSON columns and raw SQL queries for unmapped types.

man on chair 101484936

How to use the minimal hosting model in ASP.NET Core 6

The minimal hosting model in ASP.NET Core 6 means having to write less boilerplate code to get your application up and running.

one lit hanging bulb among many unlit ones

How to resolve dependencies in ASP.NET Core

Explore three different ways to resolve dependencies in ASP.NET Core 6, using constructor injection, action method injection, or IServiceProvider instances.

Binary streams across a row of computer displays.

Microsoft’s C# 10 promises ‘prettier’ code

Major upgrade to the .NET programming language arrives with new capabilities designed to improve speed and expressiveness.

Load More