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

关于[Introducing C# 9: Records]的摘要:

C# 9 introduces Init-only properties that allow to make individual properties immutable. C# 9 introduces another great feature that enable a whole object to be immutable and make it acting like a value: Records. Let’s see in this article how Records work. Unlike the previous announcement from Microsoft (https://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/), data class (combined) keywords become now record keyword.

原文地址: https://anthonygiretti.com/2020/06/17/introducing-c-9-records/

收录时间: 2020-06-18 浏览量: 1748 分类: C#开发

| 0 收藏 | 0