Code Maze Author

Code Maze

This is the standard author on the site. Most articles are published by individual authors, with their profiles, but when several authors have contributed, we publish collectively as a part of this profile.
Also find me here:



MY ARTICLES:

Virtual Methods in C#

In this article, we will discuss virtual methods in C#. We will define what they are and how we implement them. We will also mention virtual methods' uses, benefits, and drawbacks.  [sc name="github"...

Managed vs Unmanaged Code (Garbage Collection) in C#

Managed and unmanaged code are two types of code that differ in how they handle memory management. In this article, we'll explore the differences between managed and unmanaged code, focusing on garbage collection. [sc name="github"...

How To Set Up SSL Certificate In Visual Studio and .NET CLI

In this article, we'll look at setting up an SSL certificate for use in ASP.NET web applications and creating a new SSL certificate using Visual Studio and the .NET CLI. We'll also look at how to remove SSL certificates using the Windows certificate manager and the...

Expression Trees in C#

In this article, we will talk about Expression Trees in C#, how to use them, and see some of their applications. We'll also learn about their limitations and performance consideration. Although the topic may initially sound complex, it’s much simpler when we know a...

Refactoring Change Preventers in C#

In this article, we are going to discover which anti-patterns fall into the class of code smells known as change preventers, as well as several approaches for refactoring them in C#. [sc name="github"...

How to Send Emails With the SendGrid API in C#

In this article, we will take a look at how to send emails with the SendGrid API directly from our code. Sending emails from within our applications is a common scenario that we face as developers. Let's look at a couple of use cases where we may need to do this. [sc...

Memory Allocation Optimization With BenchmarkDotNet

In this article, we will focus on memory allocation optimization using BenchmarkDotNet. We will also learn how to effectively do that using the MemoryDiagnoser attribute while comparing two of the most popular sorting algorithms - QuickSort and MergeSort. [sc...

Deploy ASP.NET Core Application on Linux with Nginx

In this article, we are going to learn how to deploy an ASP.NET Core web application to the Ubuntu Linux server with Nginx. The introduction of .NET Core opened the cross-platform doors, allowing developers to build and deploy applications on Linux systems. At the...

How to Convert a String to a Span in C#

In modern C# programming, we all strive for efficiency and top-notch performance. And when it comes to dealing with character data, converting a string to a span can be a game-changer. So, in this article, we'll dive into the process of converting a string to a span...

How to Use SFTP For Secure File Upload in .NET

In this article, we will learn what Secure File Transfer Protocol is and how to use SFTP file upload to securely send files to a remote server in .NET and C#. [sc name="github"...

Using System.Text.Json for Camel Case Serialization

In this article, we'll learn how to use System.Text.Json for camel case serialization in .NET 7. First, we'll take a glance at the default behavior when serializing. Then we'll use two different ways for the camel case serialization. Lastly, we'll discuss how we can...

Swashbuckle vs. NSwag in ASP.NET Core

In this article, we will explore the two popular libraries for generating OpenAPI documentation in C#: Swashbuckle and NSwag. We'll compare their features, ease of use, and other factors that will help us choose the best one for our projects. [sc name="github"...

Different Ways to Initialize a String in C#

In this article, we will discuss how we can initialize a string in C# and the recommended best practices to follow. We will explore different approaches and techniques that enable us to achieve proper initialization and efficient utilization of strings.  [sc...

Object Initializers in C#

In this article, we are going to learn about object initializers in C#, which is a feature introduced in version 3.0 that simplifies code by eliminating the need to write multiple lines of code to initialize an object and its properties. [sc name="github"...

How to Reverse a String in C#

Reversing a string is a common task in programming, and C# provides several ways to accomplish it. Whether we need to reverse a string for sorting purposes, to improve search efficiency, or for any other reason, understanding how to perform this operation in C# is an...

Compare DateTime in C#

In C#, several methods and operators are available to compare DateTime. In this article, we will learn about them along with the best practices. [sc name="github" url="https://github.com/CodeMazeBlog/CodeMazeGuides/tree/main/dotnet-datetime/CompareDateTimeInCSharp"...