LANGUAGE

record class

Reference type with generated equality and record copy members.

Formal Syntax & Structure

csharp syntaxcsharp
record class Parcel(string Code, int Weight);

Working Example

Example Snippetcsharp
record Parcel(string Code, int Weight);
C# & .NET Reference