How to use HTTP logging in ASP.NET Core 6

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.

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

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.

How to use filters in ASP.NET Core MVC

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.

How to avoid redundant DI code in ASP.NET Core

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.

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

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.

How to validate method parameters using PostSharp in C#

How to validate method parameters using PostSharp in C#

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

How to use closures in C#

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.

How to build AWS Lambda functions in .NET Core

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.

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

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

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.

When to use String vs. StringBuilder in .NET Core

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.

How to use SortedDictionary, SortedList, and SortedSet in C#

How to use SortedDictionary, SortedList, and SortedSet in C#

Take advantage of the SortedDictionary, SortedList, and SortedSet classes in C# to store key-value pairs and sort them based on keys.

How to use Parallel.For and Parallel.ForEach in C#

How to use Parallel.For and Parallel.ForEach in C#

Take advantage of lock-free, thread-safe implementations in C# to maximize the throughput of your .NET or .NET Core applications.

How to avoid GC pressure in C# and .NET

How to avoid GC pressure in C# and .NET

Take advantage of these best practices to avoid memory pressure and improve performance when working in .NET or .NET Core applications.

How to use target typing and covariant returns in C# 9

How to use target typing and covariant returns in C# 9

Learn two of the most important features in C# 9.0 to make your code more concise, readable, flexible, and efficient.

How to use top-level programs in C# 9

How to use top-level programs in C# 9

Take advantage of the new top-level statements in C# 9.0 to eliminate boilerplate code and make your programs more readable, maintainable, and efficient.

How to use pattern matching in C#

How to use pattern matching in C#

Take advantage of the new relational and logical patterns in C# 9.0 to make your code more readable, maintainable, and efficient.

How to work with static anonymous functions in C# 9

How to work with static anonymous functions in C# 9

Take advantage of static anonymous methods in C# 9 to improve the performance of your .NET applications.

How to use LazyCache in ASP.NET Core MVC 5

How to use LazyCache in ASP.NET Core MVC 5

Take advantage of LazyCache to improve the performance and scalability of your ASP.NET 5 Core applications in heavy load scenarios.

How to work with record types in C# 9

How to work with record types in C# 9

Take advantage of record types in C# 9 to build immutable types and thread-safe objects.

Load More