File-based apps, extension members, nameof improvements, and user-defined compound assignment operators make life easier for C# programmers. You’ll need .NET 10.
Learn how to use GitHub Copilot to generate code, optimize code, fix bugs, and create unit tests, right from within your IDE or code editor.
Learn how to use keyed dependency injection in ASP.NET Core to build applications that can select a specific implementation of a service at run time.
How to configure the CORS middleware for minimal APIs and enable secure cross-origin resource sharing in your ASP.NET Core applications.
Learn how to use in-memory caching, distributed caching, hybrid caching, response caching, or output caching in ASP.NET Core to boost the performance and scalability of your minimal API applications.
Learn how to upload files efficiently to minimal API endpoints in ASP.NET Core, using anti-forgery tokens to avoid anti-forgery errors.
Take advantage of Dapper Plus in to speed up bulk data operations and improve the performance and efficiency of your .NET Core applications.
Take advantage of the MethodImplAttribute class in C# to inline methods and improve the execution speed of your .NET applications.
Take advantage of route constraints in minimal APIs to prevent unwanted requests from reaching your action methods and improve the security and performance of your ASP.NET Core applications.
The FrozenSet and FrozenDictionary classes introduced in .NET 8 are immutable collections optimized for fast look-ups. Here’s how to take advantage of them.
User context makes life easier when tracing Http requests in ASP.NET Core applications. It’s easy to add with custom middleware.
Take advantage of the IServiceProvider interface to resolve service dependencies in ASP.NET Core and improve the maintainability and testability of your applications.
Take advantage of guard clauses in C# to eliminate unnecessary nested constructs and branches and enhance the readability and maintainability of your application’s code.
Idempotent APIs protect your application from duplicate requests caused by network issues or even client-side mistakes. Here’s how to create them in ASP.NET Core.
Learn the core concepts of thread synchronization used to build multi-threaded .NET applications that enforce thread safety and avoid deadlocks.
Take advantage of the Mutex class to synchronize threads in different processes and the Semaphore class to limit the number of threads that can access a shared resource.
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.