Event-Driven Architecture in C#
Event-driven architecture is a powerful pattern for building scalable, responsive, and loosely coupled systems. In this article, we will look into event-driven architecture in C#. We'll explore what the pattern is, its use cases, and its advantages through examples....
Comparing ForEach Method and Foreach Statement in C#
In this article, we'll delve into the world of C# iteration and explore the pros and cons of both the time-tested foreach statement and the relatively unknown ForEach() method. A brief introduction to to most...
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#
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
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?...
Using Keyed Services to Resolve Dependencies in .NET
In this article, we will look at keyed services - a new feature in .NET 8 that allows us to retrieve services by a given key. Understanding cookies is one of the key components of working with...
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...