Take advantage of resource-based authorization in ASP.NET Core to provide fine-grained access to resources in scenarios not supported by attribute-based authorization.
Take advantage of the new System.Threading.Lock object in C# 13 to more easily implement performant thread-safe applications in .NET Core.
Take advantage of the ReadOnlySpan<char> struct in C# to split strings in a resource-efficient manner.
Take advantage of the Chunk method in LINQ to split large data sets into a sequence of chunks for more efficient processing.
Take advantage of ref structs to reduce resource consumpiton and eliminate garbage collection overhead. C# 13 gives us more ways to use them.
Take advantage of the DispatchProxy class in C# to implement aspect-oriented programming by creating proxies that dynamically intercept method calls.
Aspect-oriented programming allows you to isolate the cross-cutting concerns of your application, reduce code duplication, and improve the readability and maintainability of your code.
Take advantage of the new Task.WhenEach method to process asynchronous tasks as they complete, enhancing the efficiency of your .NET applications.
A good knowledge of exception handling is needed to build applications that are capable of handling runtime errors efficiently. Start with these simple guidelines.
Take advantage of the Result pattern, the Try-Parse pattern, and other techniques to make error handling more explicit and to avoid writing exception handling code in your .NET applications.
Take advantage of the FluentValidation open-source library to validate data in your ASP.NET Core application and keep your code clean, organized, and maintainable.
C# 13 introduces several new features that make it easier to build modern applications including enhanced params collections and a new Lock API that improves thread synchronization.
HybridCache is a new API in .NET 9 that brings additional features, benefits, and ease to caching in ASP.NET Core. Here’s how to take advantage of it.
Understanding the differences between an abstract class and interface is key to designing loosely coupled and extensible applications.
Learn the best practices and built-in safeguards for preventing attacks and protecting sensitive data in your ASP.NET Core web applications.
Take advantage of improved identity management in ASP.NET Core to implement identity-based authentication for minimal APIs quickly, easily, and with less code.
Lightweight and fast SQLite shines as a development companion. Learn how to take advantage of it in ASP.NET Core.
How to implement basic password authentication for a minimal API in ASP.NET Core using a custom authentication handler that validates the user’s credentials against a database.
Sponsored Links