Classes, Structures, and Records, Oh My!

Classes and structures have been the building blocks for creating applications in .NET. In .NET 5, the new record type was introduced. In this article, we will revisit the most important differences between classes and structures since there have been many changes since version 1.0. I will add records into the discussion too. I will also discuss the major performance differences between the three, and there are differences, some big!

dotNetDave Says… Fixing Bugs Is Like Playing the Game Whack-A-Mole!

Let’s face it, no software engineers like fixing bugs in code. Since no software is perfect, they are going to happen. They are a fact of life for software engineers. Sometimes, it feels like we are playing the game Whack-A-Mole where no matter how many we fix, more will pop up.

Everything That Every .NET Developer Needs to Know About Disposable Types: Using Tools to Find Issues

In part 1 of this series of this article, I talked about that it is very critical for every developer to know exactly how memory management works in the .NET runtime. In part 2 I showed how to implement the IDisposable interface for your types. In this article, I am going to discuss how to find these issues in your code by using tools and Visual Studio extensions.