Introduction In .NET, collections are fundamental to data storage and manipulation. While List<T> is a go-to choice for many developers, HashSet<T> is a powerful alternative offering unique performance benefits. This…
HashSet v List

Introduction In .NET, collections are fundamental to data storage and manipulation. While List<T> is a go-to choice for many developers, HashSet<T> is a powerful alternative offering unique performance benefits. This…
Introduction Task.Delay is a method in the .NET framework that creates a task that completes after a specified time period. Asynchronous programming often uses this method to introduce a delay…
Introduction When working with collections in C#, especially List<T>, understanding how they grow and the implications on performance is very important. This blog post looks into the inner workings of…
Introduction Managing identification fields (IDs) is crucial to data integrity and application design. For years, I have done what most people do and defined most IDs as Ints, Longs, Strings,…
Introduction Ardalis.GuardClauses is a package in .NET created by Steve Smith (also known by his alias, Ardalis), who is an experienced software architect and developer. The package is designed to…
Introduction In microservices and distributed systems, resilience and fault tolerance are not just buzzwords but essential components of system design. The Bulkhead Pattern, borrowed from naval architecture, offers an approach…
Introduction Asynchronous programming has become a cornerstone in modern C# development, especially for applications that require high responsiveness and scalability. Among the plethora of tools and keywords at the disposal…
Introduction One of the most underused features of Moq, is its ability to handle callbacks and custom method implementations. While many developers are familiar with the basic setup and verification…
Introduction With SQL databases, a frequent task is to insert a record into a table that includes an Identity Field. Following this insertion, retrieving this newly generated ID for subsequent…
Introduction: In the world of .NET, Dependency Injection (DI) has emerged as a key practice, significantly enhancing how developers handle dependencies in their applications. At the heart of this practice…