Showing posts from June, 2021

Disposal and garbage collection in C#

In this post, I will discuss the most important concept of C#, called garbage collection. What garbage collection? Garbage collection is a non-deterministic background thread that scans objects in memory on a regular basis and…

Iterating One Dimensional Array As Two Dimensional Array-C#

This article will show you how to store a 2D array as a 1D array in C#. (This technique can be applied to any language). 2D Row: 1 Col: 1 Row: 1 Col: 2 Row: 1 Col: 3 Row: 2 Col: 1 Row: 2 Col: 2 Row: 2 Col: 3 …

Best Practice for Using HttpClient-C#

Best Practice for Using HttpClient-C# Almost every application nowadays is making HttpRequest get data from other services. In this article, I will share some best practices for using the .net core HttpClient API. To understan…

CQRS Pattern Using MediatR In - C#

What is MediatR library What is Mediator Pattern? What is Command Query Responsibility Segregation (CQRS) How to implement MediatR in .NET Core application Install Mediatr package from NuGet Install MediatR Dependency …

Load More
That is All