Side view of a vinyl record being read.

Why use records in C# ?

Durée de lecture : environ 3 minutesRecords, or data classes, were introduced with C# 9. They have a specific and concise syntax along with some strong constraints. Despite being released in late 2020, I feel like they are not very popular : I still encounter DTOs and POCOs written with classes and public getters/setters. So why Read more…