Code Maze Author

Martin Chege

Martin has over seven years of experience designing, and developing .NET web applications. His experience includes building electronic health record systems. Besides his every-day job as a cyber security professional, he enjoys learning new technologies and contributing to discussion forums.
Also find me here:

MY ARTICLES:

Fastest Ways to Perform Base 10 Conversions in C#

Performing base 10 conversions is fundamental when learning basic computer science and mathematical concepts. Since we know computer systems understand binary, such conversions can help us form different number representations that we can use for various applications...

How to Get the Quarter of a Given Date in C#

Manipulating DateTime values is one of the most common operations in any application. Have we ever asked ourselves how to extract the quarter of a given date value in C#? In this article, we are going to understand how we can derive the quarter and financial quarter...

Comparing for and foreach Loops in C#

In this article, we will compare the for and foreach loops. Iterating through arrays and lists is fundamental when learning any programming language. C# offers different ways to achieve this, such as using while, for, and foreach statements. But, what about the...

How to Check if Items of a List Exist in Another List in C#

One of the programming scenarios we can encounter once in a while is checking whether certain items in a list exist in another. This article is going to dive deep into all the techniques to compare lists. We are also going to compare how these techniques perform and...

PeriodicTimer in C#

Some system development problems may require us to perform tasks at regular intervals. Such tasks may include updating user interfaces and data or other recurring tasks. To ensure we address this need, C# provides the PeriodicTimer class, which was introduced in .NET...