Records, Classes and Equality in C# 9 / .NET 5 The record modifier can define properties and equality in our classes for us, saving time and keeping our code cleaner. Let's see how it works!