# Records and Collections

DevFeed: [Records and Collections](<https://devfeed.tech/articles/records-and-collections-30700.md>)

Original publisher: [Read original article](<https://codeblog.jonskeet.uk/2025/03/27/records-and-collections/>)

Author: jonskeet

Published: 2025-03-27T14:20:54Z

Content type: tutorial

Language: en

Sources: [Jon Skeet](<https://devfeed.tech/sources/jon-skeet.md>)

Topics: [C#](<https://devfeed.tech/topics/csharp.md>), [Code](<https://devfeed.tech/topics/code.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [code](<https://devfeed.tech/tags/code.md>), [election-2029](<https://devfeed.tech/tags/election-2029.md>), [implementation](<https://devfeed.tech/tags/implementation.md>)

## AI overview

This post discusses practical issues encountered when using C# records and collections in an election site's immutable data models. It explains record generation and non-destructive updates, then focuses on record equality and the difficulty of applying custom element comparers to collection properties.

## Source excerpt

Records and Collections This post is to some extent a grab-bag of points of friction I've encountered when using records and collections within the election site. Records recap This may end up being the most generally useful blog post in this series. Although records have been in C# since version 10, I haven't used them ... Continue reading Records and Collections ->