Bite-Size C# 10 - Anonymous 'with' Expressions

added by DotNetKicks
8/13/2021 4:44:03 PM

834 Views

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.


0 comments