Latest Posts On Code Maze

Method Overriding in C#

Method Overriding in C#

Method overriding in C# is a form of implementing polymorphism. We also call it "run-time" polymorphism. In this article, we are going to learn more about method overriding, how to implement it, and how it differs from method overloading.


VIDEO: .


Starting with .NET 7 we can run any .NET method from...

Check If a String Array Contains a Value and Get Index

Check If a String Array Contains a Value and Get Index

In this article, we are going to see the different ways we can check for a specific value in a string array and return the index of that value. We will focus mainly on linear search methods. We cannot use binary search methods since we do not know if the array is...

ConcurrentDictionary in C# – Detailed Guide

ConcurrentDictionary in C# – Detailed Guide

We've already written about a regular Dictionary in C#. We've also explored the basics of ConcurrentDictionary as one of many Concurrent Collections in C#. In this article, we will go into more detail and explore the use cases in which ConcurrentDictionary can be...

Tracing .NET Applications Easily With OpenTelemetry

Tracing .NET Applications Easily With OpenTelemetry

One of the fundamental concepts in the OpenTelemetry project is the ability to observe end-to-end requests through our applications, which is known as tracing. We achieve this by adding custom code to our .NET applications to emit this tracing information, which we...

Realistic Data Generation in .NET With Bogus

Realistic Data Generation in .NET With Bogus

In this article, we are going to learn what Bogus library is and how we can use it to generate fake data in .NET. We will create examples for generating data in different ways and show some additional community extensions we can use on top of Bogus. A clean and simple introduction to...

How to Get The List of Properties in C#

How to Get The List of Properties in C#

In this article, we are going to learn how to get the list of properties in C#, and also how to use the BindingFlags to filter the properties to retrieve. [sc name="github"...

Convert String and Int to Enum in C#

Convert String and Int to Enum in C#

In this article, we’re going to look at how to convert a string and int to an enum in C#. Enums allow us to declare a group of related constant values in a readable way where the underlying data type is usually an integer.  [sc name="github"...

Understanding PLINQ in .NET

Understanding PLINQ in .NET

In this article, we are going to explore PLINQ, which is the parallel implementation of LINQ. We are going to focus on when, and how to efficiently use it.  [sc name="github" url="https://github.com/CodeMazeBlog/CodeMazeGuides/tree/main/csharp-linq/UnderstandingPLINQ"...

Boxing and Unboxing in C#

Boxing and Unboxing in C#

In this article, we are going to talk about boxing and unboxing in C#.  When we work with C# language constantly, we need to...

Encrypting and Decrypting a String in C#

Encrypting and Decrypting a String in C#

In this article, we will learn how encrypting and decrypting a string is done using C# and the Cryptography package that comes included with .NET. [sc name="github"...

Code Maze Weekly #156

Code Maze Weekly #156

Issue #156 of the Code Maze weekly. Check out what's new this week and enjoy the read. Rebus is a free .NET “service bus”. It is an implementation of several useful messaging patterns, which have turned out to be immensely useful for implementing...