{"id":611,"date":"2021-10-31T13:20:28","date_gmt":"2021-10-31T13:20:28","guid":{"rendered":"https:\/\/turtleflyblog.com\/?p=611"},"modified":"2022-02-28T09:17:38","modified_gmt":"2022-02-28T09:17:38","slug":"c-record-2","status":"publish","type":"post","link":"https:\/\/turtleflyblog.com\/en\/2021\/10\/31\/c-record-2\/","title":{"rendered":"C# Record"},"content":{"rendered":"\n
After .net 5 came up, a new C# 9 mechanism called Record <\/strong>has drawn C# developer much attention. Record has both Reference Type and Value Type features. It is used to store data like struct, <\/strong>however as it is Reference Type, it has behaviors like encapsulate and inheritance. Hence we can use record <\/strong>to store DTO data. This article will introduce record feature.<\/p>\n\n\n\n