# Records: Small Data Types with Value Equality and with

Write a small data type in one line with a positional record, which compares and prints by its values and makes changed copies with a with expression.

![Cheat sheet: Records: Small Data Types with Value Equality and with](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/fbbc6591aace4c03912f78fc462d230d.webp)

- Category: C#
- Level: Apprentice
- Tags: c-sharp, Record Type, Reference Type, Shallow Copy (software-development), Value Equality, with Expression
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/records-in-csharp-cheat-sheet
