How to use named and optional parameters in C#

How to use named and optional parameters in C#

Take advantage of named and optional parameters in C# for improved readability, flexibility, and COM interoperability

How to benchmark C# code using BenchmarkDotNet

How to benchmark C# code using BenchmarkDotNet

Take advantage of this lightweight, open source benchmarking library to transform your methods into benchmarks and track their performance

How to use fluent interfaces and method chaining in C#

How to use fluent interfaces and method chaining in C#

Take advantage of fluent interfaces and method chaining to make your code simple, readable, and understandable

How to build gRPC applications in ASP.NET Core

How to build gRPC applications in ASP.NET Core

Learn how to use gRPC, a language-agnostic, high-performance RPC framework, to build lightweight, high-performance services in ASP.NET Core 3.0

How to unit test static methods in C#

How to unit test static methods in C#

Learn when static methods can’t be unit tested and how to use wrapper classes and the Moq and xUnit frameworks to unit test them when they can

How to redirect a request in ASP.NET Core MVC

How to redirect a request in ASP.NET Core MVC

Take advantage of redirect action results in ASP.NET Core MVC to elegantly redirect a request to a specified URL

How to refactor God objects in C#

How to refactor God objects in C#

Follow these best practices to eliminate God objects and design classes that are loosely coupled, cohesive, and easy to maintain

How to use attribute routing in ASP.NET Core

How to use attribute routing in ASP.NET Core

Take advantage of attribute-based routing in ASP.NET Core to decouple the controller and action names from the route template and allow more flexibility in your routing

How to pass parameters to action methods in ASP.NET Core MVC

How to pass parameters to action methods in ASP.NET Core MVC

Explore the various ways in which you can pass parameters to action methods in ASP.NET Core MVC

How to use API Analyzers in ASP.NET Core

How to use API Analyzers in ASP.NET Core

Take advantage of API Analyzers and Swagger to improve the documentation of your ASP.NET Core APIs

How to use route data tokens in ASP.NET Core

How to use route data tokens in ASP.NET Core

Take advantage of data tokens in ASP.NET Core to attach additional information to a route and retrieve it programmatically when needed

How to use ValueTask in C#

How to use ValueTask in C#

Take advantage of ValueTask in C# to avoid allocation when returning task objects from an asynchronous method

How to use immutability in C#

How to use immutability in C#

Learn the importance of immutability and how to take advantage of it in your C# applications

How to use API versioning in ASP.NET Core

How to use API versioning in ASP.NET Core

Take advantage of API versioning in ASP.NET Core to manage the impact of changes to your APIs on your clients

How to use Data Transfer Objects in ASP.NET Core 3.1

How to use Data Transfer Objects in ASP.NET Core 3.1

Learn the benefits of Data Transfer Objects, why they should be immutable, and how to take advantage of them in your ASP.NET Core applications

How to use const, readonly, and static in C#

How to use const, readonly, and static in C#

Understand the similarities and differences between the const, readonly, and static keywords in C#

How to handle 404 errors in ASP.NET Core MVC

How to handle 404 errors in ASP.NET Core MVC

Take advantage of ASP.NET Core middleware to handle 404 errors more gracefully in ASP.NET Core MVC

How to use dependency injection in action filters in ASP.NET Core 3.1

How to use dependency injection in action filters in ASP.NET Core 3.1

Take advantage of dependency injection to make your action methods in ASP.NET Core lean, clean, and maintainable

How to use data annotations in C#

How to use data annotations in C#

Take advantage of data annotations to decorate your models using attribute tags so that your application’s data definition can be managed in a single place

How to use the options pattern in ASP.NET Core

How to use the options pattern in ASP.NET Core

Take advantage of the options pattern to load configuration data directly into your classes at runtime for simple and flexible configuration data management

Load More