你的位置: 码友网首页 / 资讯源列表 / C# 9 Record Types

关于[C# 9 Record Types]的摘要:

We have taken a quick look at C# 9 Initializers and Immutability and C# 9 Non-Destructive Mutation. Let’s now look at the full transformation from an old class to a super character-light record type. Our original record type is very much just a class with two auto-properties. It looks different to a normal class because we have the data keyword in there.

原文地址: https://www.stevefenton.co.uk/2020/05/csharp-9-record-types/

收录时间: 2020-05-28 浏览量: 1960 分类: C#开发

| 0 收藏 | 0