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!