Jon Skeet 3/27/2025

Records and Collections

Read Original

This article provides a detailed look at using C# records and collections, focusing on implementing immutable data models. It explains the boilerplate code generated by the compiler for records, demonstrates a practical example with a 'Candidate' record, and discusses points of friction encountered in a real-world project (an election site).

Records and Collections

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes