---
title: "Discussion on \"Record types\" | Hashnode"
description: "Discussion on \"Record types\". Record types are introduced in c# 9 which allows writing immutable reference types. The properties of an instance of reference type cannot change after its initialization.\npublic record User(string FirstName , string LastName);\n\nvar user = new User(\"..."
url: "https://hashnode.com/posts/c-sharp-record-types/62f387159fe9857e6f9e452b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Record types](https://ashoksubbiah.in/c-sharp-record-types?utm_source=hashnode&utm_medium=feed)

Record types are introduced in c# 9 which allows writing immutable reference types. The properties of an instance of reference type cannot change after its initialization. public record User(string FirstName , string LastName); var user = new User("...

Feb 2, 2022 · 3 min read · ashoksubbiah.in  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Ashok](https://hashnode.com/@AshokSubbiah)

@AshokSubbiah

  
[View profile](https://hashnode.com/@AshokSubbiah)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
