Latest Posts On Code Maze

Introduction to Behavior Driven Development (BDD) in C#

Introduction to Behavior Driven Development (BDD) in C#

Behavior Driven Development, or short, BDD is a software development methodology that relies on examples to define the behavior of a system. In this article, we're going to learn the bases of BDD, see what tools are available, and see BDD in action through simple...

Code Maze Weekly #159

Code Maze Weekly #159

Issue #159 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks Creating and downloading zip files with ASP.NET Core [blog.elmah.io] While there are some nice NuGet packages to help us with...

How to Execute CLI Applications From C#

How to Execute CLI Applications From C#

In this article, we will learn how to execute CLI applications in C# using a built-in class called Process and using open-source libraries. We will cover how we can execute CLI, how we can check if the CLI execution was successful, and how we can react to the...

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