Records

Let's learn about records .

What is a record?

A record is a type that makes it easier to create immutable reference types and provides equality comparisons.

Syntax

public record Student(string Name, string Assignment, int Grade);
...