How To

How to use Autofac in ASP.Net Core
1/3/2025 8:20:50 AM  159

Dependency injection in ASP.Net Core helps achieve loose coupling, enhancing testability and maintainability.

How to handle exceptions with asynchronous in C#
1/3/2025 8:05:00 AM  329

Exception handling in asynchronous code differs from synchronous methods in C#.

How to use default interface methods in C#
1/3/2025 7:54:35 AM  183

C# 8.0 introduced default interface methods, allowing you to add new methods to an interface without breaking existing implementations.

How to format response data in ASP.NET Core
1/3/2025 7:25:25 AM  173

In this article, we will learn how to use the FormatFilterAttribute in ASP.NET Core to control the format of response data based on the request URL.

How to use projections in C#
1/3/2025 7:22:31 AM  115

Projections in C# allow you to transform an object into a new form by selecting only the properties you need.

How to use inversion of control in C#
1/3/2025 6:49:11 AM  127

IoC and dependency injection (DI) both aim to reduce dependencies between components, enhancing testability and maintainability.

How to use pattern matching in C#
1/3/2025 6:39:35 AM  126

Leverage the enhanced pattern matching capabilities in C# 8.0 to write code that is cleaner, more maintainable, and more efficient.

Scheduling Jobs with Quartz.NET in ASP.NET Core
1/3/2025 4:45:47 AM  244

Quartz.NET is a job scheduling framework that allows you to schedule background tasks in an ASP.NET Core application, often for tasks that need to run at predefined intervals.

How to use ValueTuples in C#
1/3/2025 4:33:50 AM  142

A Tuple is a data structure consisting of an ordered, fixed-size collection of immutable elements, each of a specific type that cannot be modified.

How to use asynchronous streams in C#
1/3/2025 3:43:25 AM  115

In C# 8.0, asynchronous programming is enhanced with the introduction of IAsyncEnumerable, allowing for the efficient consumption and creation of data streams asynchronously.

How to log data to SQL Server in ASP.NET Core
1/3/2025 3:28:47 AM  182

Logging is crucial for detecting and debugging issues in applications, and Serilog enables .NET developers to log data in a structured format to various targets like the console, files, and databases.

How to use indices and ranges in C#
1/3/2025 3:09:54 AM  152

In C# 8.0, two important new features, System.Index and System.Range, have been introduced to simplify indexing and slicing operations for collections.