8 things about Records in C# you probably didn't know
Records are the new data type introduced in 2021 with C# 9 and .NET Core 5.
public record Person(string Name, int Id);
Records are the third way of defining data types in C#; the other two are class and struct.
Since they're a quite new idea in .NET...
code4it.hashnode.dev6 min read