Skip to content

Glossary: C# Beyond the Basics

with expression

Also written: with

Copies a record and changes the properties you name, such as `item with { OnHand = 9 }`. The original record is untouched.

Where the book teaches it

Related terms

positional record