C#

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

Windows 11 window logo
multicolored neon lights 56402620

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.

language / alphabet / letters / characters

How to improve StringBuilder performance in C#

Take advantage of best practices for using StringBuilder to reduce memory allocations and improve the performance of your string operations.

Garbage can paper trash

How to use IDisposable in ASP.NET Core

Learn the different ways to dispose of objects that implement IDisposable in ASP.NET Core.

gear shift stick shift car automobile 5-speed

How to use Simple Injector in ASP.NET Core MVC

Take advantage of the fast, easy, and lightweight Simple Injector inversion of control library to implement dependency injection in your ASP.NET Core MVC applications.

error neon mistake

How to use the Developer Exception Page in ASP.NET Core MVC

Take advantage of the Developer Exception Page middleware in ASP.NET Core MVC to display detailed, developer-friendly error messages in your development environment but not in production.

cyber security shield lock protect

How to prevent CSRF attacks in ASP.NET Core

Take advantage of anti-forgery tokens in ASP.NET Core to protect users of your applications against cross site request forgery exploits.

puzzle team ts

How coupling impacts software quality

Why loose coupling between components makes your .NET application more flexible, manageable, scalable, and testable.

abstract arrows direction process magnifying glass search investigate

How to use string interpolation in C# 9

Take advantage of string interpolation to incorporate variable substitution in formatted strings in C#.

dandelion fragile fall digital transformation fly growth jasmina007 getty

How to build lightweight services in ASP.NET Core 6

Take advantage of the extension methods of the IEndpointConventionBuilder interface to implement lightweight services sans template or controller in ASP.NET Core 6.

abstract data flows / data streams

How to work with Azure Queue Storage in C#

Take advantage of Azure Storage queues to store large numbers of messages for asynchronous or even distributed processing.

flight data recorder

How to use HTTP logging in ASP.NET Core 6

Take advantage of the HTTP logging middleware in ASP.NET Core to log request and response information with flexibility and ease.

blog 6 image

How to use advanced Serilog features in ASP.NET Core MVC

Take advantage of filters and request logging middleware in Serilog to reduce log verbosity and generate useful log summaries in your ASP.NET Core MVC applications.

2 filtering

How to use filters in ASP.NET Core MVC

Take advantage of filters to execute custom code at specific points in the request processing pipeline and avoid code duplication across actions.

executive pushing boulder uphill deadline stress struggle

How to avoid redundant DI code in ASP.NET Core

Take advantage of base controllers to avoid dependency injection code duplication and enforce the DRY principle in ASP.NET Core MVC.

integrated digital tools / interoperable tools

Microsoft previews 64-bit Visual Studio 2022 IDE

Company seeks feedback on the planned next version of its flagship integrated software development environment.

Load More