你的位置: 码友网首页 / 资讯源列表 / Bite-Size C# 10 - Anonymous 'with' Expressions

关于[Bite-Size C# 10 - Anonymous 'with' Expressions]的摘要:

Let's make our anonymous objects easier to copy using the with expression! Introduced in C# 9.0, the with keyword was designed to create record objects from other record objects in a non-destructive manner; that is, create a copy of a record and change one or more properties.

原文地址: https://exceptionnotfound.net/bite-size-csharp-10-anonymous-with-expressions/

收录时间: 2021-08-14 浏览量: 1658 分类: C#

赞 | 0 收藏 | 0