Latest Posts On Code Maze

Merging Multiple PDFs Using the iText Library

Merging Multiple PDFs Using the iText Library

In this article, we will continue our exploration of the iText library. However, today, we will take a closer look at working with existing files and the process of merging multiple PDFs into a single, comprehensive document. In a previous article on the iText...

Code Maze Weekly #192

Code Maze Weekly #192

Issue #192 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks Understanding Migrations, Snapshots, and Synchronization in Entity Framework Core [ardalis.com] A brief introduction to to most...

How to Force Run .NET Application as Administrator

How to Force Run .NET Application as Administrator

In this article, we will learn how to force run a .NET application as an Administrator. We will do that by modifying the application manifest file of our application to illustrate the whole process. If you like using MongoDB in your project, here's a way to...

How to Read a String From a .resx (Resource) File in C#

How to Read a String From a .resx (Resource) File in C#

In this article, we are going to learn how to read a string from a .resx file. While doing this, we are also going to understand what is going on under the hood. Additionally, we will follow some of the best practices on how to manage resource files, and lastly, offer...

Dynamically Adding Rows on a Form in Razor Pages

Dynamically Adding Rows on a Form in Razor Pages

In this article, we will delve into ASP.NET Core forms and how to add rows to them dynamically. We'll use razor pages to create the form and SQLite as our database. Interested in using Minimal APIs with Razor Views?...

ConcurrentQueue in C#

ConcurrentQueue in C#

In this article, we embark on a journey to explore the depths of the ConcurrentQueue class in C#. We'll delve into its fundamental concepts, its usage, and its role in ensuring thread safety while enabling parallelism. By the end, we'll have a comprehensive...

How to Perform Case-Insensitive Substring Search in C#

How to Perform Case-Insensitive Substring Search in C#

In this article, we will explore the techniques of performing case-insensitive substring search in C#, with the usage of the String.Contains() method, String.IndexOf() method, Regular Expressions, and LINQ in conjunction with String.Equals(). Additionally, we will...

Replace Line Breaks in a String in C#

Replace Line Breaks in a String in C#

One common task in text processing is to replace line breaks in a string for various reasons. For instance, we might want to create a single, continuous string without any line breaks to save space or remove unwanted formatting. Alternatively, we might need to change...