Category: C#

.NET MAUI Login screen development

MAUI is a cross platform framework that we can develop mobile and desktop apps with a single code base. (We must have Visual Studio 2022)...

C# Enumerator

What is Enumerator? Enumerator provides itteration over a list. Let’s see in a example; It will itterate until MoveNext() method will return false And the...

C# Skip vs SkipWhile

When the need is to skip N count of items in a list we can rely on LINQ extension Skip(int count) BasicallySkip extension performs a...

C# Select vs SelectMany

As the Verb describes that this method is selecting values from some source. While Select genereates value per source object, SelectMany generates combined value per...

C# Foreach vs Parallel Foreach

When the need is consuming list of N items. Loops are inevitable. Let’s say we have list of string contained with names. The main goal...

FFMPEG – Generate video from images

1- First, we need to download FFMPEG executables, (I have downloaded for Windows) 2- After download, extract zip to a folder; (I have extracted under...

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 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...

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...