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

Garbage can paper trash
gear shift stick shift car automobile 5-speed

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.

whats next for windows

How to use Razor View Engine in ASP.NET Core MVC

Take advantage of the friendly syntax of Razor View Engine to more easily create views from templates in ASP.NET Core MVC.

A virtual checkmark in digital system / standards / quality control / certification / certificates

How to validate method parameters using PostSharp in C#

Take advantage of aspect-oriented programming using PostSharp to validate method parameters in C#.

3D tin can phones, by Chris Potter / CC BY 2.0

How to use closures in C#

Take advantage of closures in C# — including anonymous methods, delegates, and lambda expressions — to make your code robust, efficient, readable, and easier to maintain.

Java  >  Lambda expressions  >  Lambda symbol / abstract formulas / binary code

How to build AWS Lambda functions in .NET Core

Learn how to use .NET Core and the AWS Toolkit for Visual Studio to build serverless functions and deploy them to AWS Lambda in the Amazon cloud.

A magnifying lens sits on a paper web browser window. [internet / online / search]

How to read request headers in ASP.NET Core 5 MVC

Learn how to read request headers and work with optional data that is passed between the server and client in ASP.NET Core 5 applications.


Get started with Blazor in .NET 5

Take advantage of Blazor, Microsoft’s answer to full-stack development, to build rich web apps with C# and .NET Core.

Plastic, magnetic letters in compartmented boxes.

When to use String vs. StringBuilder in .NET Core

Take advantage of these best practices when working with strings in .NET Core for the optimal performance of your applications.

Load More