C# Merge wav files
Merging wav files by manupulating byte array. Here is a very handy wav file structure, There are several properties but our main goal is merge...
.NET 6 Implementing MemoryCache
When the need is performance and you got static data list. You can use in memory cache! We need to Register MemoryCache service in Program.cs...
C# 7.3 Relational Pattern to check nullable type
Let’s look at traditional way first, lets say we have a nullable integer and we need to write something on Console If it’s value greater...
.NET Core logging request and responses
Implementing middleware and handling each request before consumed in controller is the best way to do it. Middlewares executions are the previous step of execution...
.NET Core resolving services from Dependency Injection container
Instead of injecting N count of service, (for example: Controller’s ctor), Looks boring. Let’s inject IServiceScopeFactory We can resolve every registered service by creating factory...
DbContext DbSet invoke by type
When you need to get DbSet by using type; This extension would allow dbContext to get entity by type, When you need the load navigation...
C# LINQ filtering
LINQ (Language Integrated Query) is a .NET methodology for query. Beside using LINQ we can also do this by using for, while loops. List<string> items...
Raspberry Pi 4 Model B connection with Putty
We need to download operating system which will run on Raspberry Pi and upload into SD card. Download the suitable one above and after that...