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.

How to use implicit and explicit operators in C#

How to use implicit and explicit operators in C#

Take advantage of implicit and explicit operators to convert between user-defined types and improve the readability of your code.

How to create PDF documents in ASP.NET Core 5

How to create PDF documents in ASP.NET Core 5

Take advantage of the DinkToPdf and wkhtmltopdf libraries to generate PDF documents from HTML templates in ASP.NET Core 5.

How to use immutable objects in ASP.NET Core MVC 5

How to use immutable objects in ASP.NET Core MVC 5

Take advantage of init-only setters to make configuration options immutable in ASP.NET Core MVC 5 to avoid unnecessary assignments and eliminate opportunities for errors.

Dependency injection best practices for ASP.NET Core MVC 5

Dependency injection best practices for ASP.NET Core MVC 5

Learn how to use constructor injection, property injection, method injection, and the service locator pattern in ASP.NET Core MVC 5, along with their caveats.

Singleton vs. static classes in C#

Singleton vs. static classes in C#

Understand the differences between a singleton class and a static class and when to use which in your applications.

How to handle unknown actions in ASP.NET Core MVC 5

How to handle unknown actions in ASP.NET Core MVC 5

Handle unknown actions elegantly in ASP.NET 5 by creating routes that dynamically map to the views in your application.

How to overload action methods in ASP.NET Core MVC 5

How to overload action methods in ASP.NET Core MVC 5

Overloading action methods that use identical HTTP verbs is tricky in ASP.NET Core 5, but there are a number of ways to do it. Let’s explore them.

How to log data to the Windows Event Log in C#

How to log data to the Windows Event Log in C#

Take advantage of the Windows Event Log to store the log data of your .NET Core applications running on Windows

Use multiple implementations of an interface in ASP.NET Core

Use multiple implementations of an interface in ASP.NET Core

How to register multiple implementations of an interface with the IoC container in ASP.NET Core and retrieve a specific service at runtime

How to use RecyclableMemoryStream in .NET Core

How to use RecyclableMemoryStream in .NET Core

Take advantage of Microsoft.IO.RecyclableMemoryStream to eliminate LOH allocations and avoid memory fragmentation and memory leaks in your .NET Core applications.

How to use ArrayPool and MemoryPool in C#

How to use ArrayPool and MemoryPool in C#

Take advantage of array pooling and memory pooling in C# to reduce allocations and improve the performance of your applications

How to use the Buffer class in C#

How to use the Buffer class in C#

Take advantage of the Buffer class in .NET to improve application performance through faster access to data in memory

How to use HashSet in C#

How to use HashSet in C#

Take advantage of high-performance HashSet collections for storing unique elements to speed up searches in your applications.

How to use IHttpClientFactory in ASP.NET Core

How to use IHttpClientFactory in ASP.NET Core

Take advantage of IHttpClientFactory to create HttpClient instances seamlessly and avoid having to manage their lifetimes manually

How to use the ProblemDetails middleware in ASP.NET Core

How to use the ProblemDetails middleware in ASP.NET Core

Take advantage of the open source ProblemDetails middleware in ASP.NET Core to send clients standardized, machine-readable error messages when exceptions occur

How to create route constraints in ASP.NET Core

How to create route constraints in ASP.NET Core

You can take advantage of custom route constraints in ASP.NET Core to validate route values and avoid passing unwanted or unnecessary requests to action methods.

How to manage user secrets in ASP.NET Core

How to manage user secrets in ASP.NET Core

Take advantage of user secrets management in ASP.NET Core to prevent the sharing of sensitive application data in your projects

Load More