fbpx

Latest Posts On Code Maze

Code Maze Weekly #146

Code Maze Weekly #146

Issue #146 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks More Efficient Deletes With Entity Framework Core [khalidabuhakmeh.com] If you work with EF Core, you know deleting entities usually takes two database calls....

Concurrent Collections in C#

Concurrent Collections in C#

Concurrent Collections in C# are a set of collections designed for synchronized multi-thread access. We can find concurrent collections under the System.Collections.Concurrent namespace. Nowadays, where it is getting increasingly important and accessible to work in a...

HashSet in C#

HashSet in C#

In this article, we are going to take a look at the HashSet class in C#. We will discuss how to use it and its key features. Also, we are going to see some examples of how to use it in practice. Finally, we'll compare it to other data structures available in C#. [sc...

How to Convert DataTable to JSON in C#

How to Convert DataTable to JSON in C#

Converting DataTable to JSON is one of those tasks that we come across from time to time and it seems like there should be a built-in method to do it. Unfortunately, that is not the case and we need to figure out a way to do it on our own. In this article, we will...

Advanced LINQ

Advanced LINQ

LINQ is an extremely useful library with many applications. These applications are not all utilized or understood equally. In this article, we are going to take a look at some advanced LINQ capabilities to perform grouping, joining, partitioning, and even converting...

Code Maze Weekly #145

Code Maze Weekly #145

Issue #145 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks A Quick Guide to Learn ASP.NET Core Web API [codingsonata.com] Compact but packed with information article about creating ASP.NET Core Web API applications by...

Dictionary vs Hashtable in C#

Dictionary vs Hashtable in C#

In this article, we are going to compare Dictionary and Hashtable in C#. We will start with a brief introduction to both data structures and then proceed to the comparison. [sc name="github"...

Constructor Overloading in C#

Constructor Overloading in C#

In this article, we are going to talk about constructor overloading in C#. We'll look at the different ways to implement it in an application.  While we look at constructor overloading in this article, we have an existing article on constructors that can act as a...

IComparable vs IComparer vs Comparison Delegate

IComparable vs IComparer vs Comparison Delegate

In this article, we're going to learn about the IComparable and the IComparer interfaces, and the Comparison delegate. In C#, if we have an array of types such as integers or strings, it supports inbuilt comparison and sorting. This is because it implements the...

Using OData with ASP.NET Core Web API

Using OData with ASP.NET Core Web API

In this article, we will learn how to use OData with ASP.NET Core Web API services. OData (Open Data Protocol) is an open protocol that defines a set of best practices for building and consuming RESTful APIs. Initiated by Microsoft in 2007, it has become an OASIS...

Code Maze Weekly #144

Code Maze Weekly #144

Issue #144 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks ASP.NET Core: Three ways to refresh the claims of a logged-in user [www.thereformedprogrammer.net] If you want to learn about the three different ways to...

Common C# Programming Mistakes

Common C# Programming Mistakes

In this article, we are going to look at some common C# programming mistakes. We are pretty sure that there are a lot more mistakes that developers make while writing their projects, but here, we will try to summarize the ones we often noticed while working with other...

Localization in ASP.NET Core

Localization in ASP.NET Core

Making websites multi-lingual allows users from around the globe to use our applications in their native language. In this article, we are going to see how ASP.NET Core provides us with the ability to enable localization to support different languages and cultures. ...

Make The First Letter of a String Upper Case in C#

Make The First Letter of a String Upper Case in C#

In this article, we're going to take a look at how to make the first letter of a string upper case in C#. We'll see some different approaches and investigate their performance characteristics. By the end of this article, we should have a good understanding of which...

Code Maze Weekly #143

Code Maze Weekly #143

Issue #143 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks Add MS SQL Server JSON Support To Entity Framework Core [khalidabuhakmeh.com] Many software developers use Entity Framework Core with MSSQL daily, but not too...

Boosting Performance With Sealed Classes in .NET

Boosting Performance With Sealed Classes in .NET

In this article, we are going to learn how we can boost performance with sealed classes in our .NET projects. By default, all classes in C# are open for inheritance. We can use the sealed keyword to prevent inheriting from the class and improve performance for certain...

Performance Testing of ASP.NET Core APIs With k6

Performance Testing of ASP.NET Core APIs With k6

In this article, we are going to discuss how to do ASP.NET Core Performance Testing, specifically with the open-source tool k6. We'll cover the need for performance testing, how to get the best results, and then dive into some examples of how k6 can help. [sc...

Code Maze Weekly #142

Code Maze Weekly #142

Issue #142 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks Different types of LINQ queries: Query Syntax and Method Syntax [codingsight.com] Everyone loves LINQ. It's one of the best additions .NET ever got, so make...

Path Class in C#

Path Class in C#

When we want to perform operations on path strings containing file or directory path information, the best choice is to call the built-in C# Path Class methods. This class comes under the System.IO namespace and System.Runtime.dll assembly. In this article, we are...