Latest Posts On Code Maze

Easy Web Application Caching With Redis in C#

Easy Web Application Caching With Redis in C#

Started to improve the scalability of an Italian startup, Redis has emerged as a powerful solution for efficient and fast data storage and retrieval. With Redis, applications can achieve lightning-fast access to frequently used data enabling millions of requests per...

Hashtable in C#

Hashtable in C#

In this article, we will explore the Hashtable class in C#. We will comprehensively discuss its practical usage and key features. Let's dive...

Code Maze Weekly #179

Code Maze Weekly #179

Issue #179 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks How to Hash Passwords with BCrypt in C# [www.claudiobernasconi.ch] If you're unsure what to do with passwords or if your approach...

How To Parse String to DateTime in C#

How To Parse String to DateTime in C#

In this article, we will discuss how to parse string representations of date and time to an equivalent DateTime value in C#. The available methods in the DateTime class include Parse(),  TryParse(), ParseExact()and TryParseExact(). These methods can parse a string to...

Test Data Generation With AutoFixture in .NET

Test Data Generation With AutoFixture in .NET

In this article, we will explore how to automate test data generation, enhance productivity, improve test coverage, and reduce maintenance efforts with a single library called AutoFixture.


VIDEO: .


Parsing HTML is a common operation in programming....

Value Objects in C#

Value Objects in C#

In this article, we are going to dive into a very interesting concept in domain-driven design: value objects. We will take a look at many aspects of value objects, what makes them useful, and discuss situations where they may not be appropriate. There has been a lot of recent...

How to Get Class Name as String in C#

How to Get Class Name as String in C#

In our programming journey, there are times when we might find ourselves in a situation where we need to obtain the class name as a string. This proves beneficial for many reasons, such as logging, debugging, or other programming endeavors. In C#, there are different...

How to Add a Global Route Prefix in ASP.NET Core

How to Add a Global Route Prefix in ASP.NET Core

In this article, we will learn how to add a global route prefix in ASP.NET Core. This enables us to effortlessly incorporate the route prefix into our application's routing mechanism, offering greater flexibility and control. [sc name="github"...

How to Read Values From Query Strings In ASP.NET Core

How to Read Values From Query Strings In ASP.NET Core

In this article, we are going to learn how to read values from query strings in ASP.NET Core. In web development, the capability to read and utilize values from the query string holds significant importance. It is crucial to adeptly interpret the parameters...