Dive deep into C# 9's Records feature in this 44-minute conference talk from NDC Melbourne 2021. Explore the concept of records, their implementation, and associated new features like primary constructors, init accessors, and with expressions. Learn about potential pitfalls and misconceptions surrounding records, including their true nature beyond "immutable data classes." Discover how Records evolve in C# 10 and gain insights on leveraging their benefits, even if direct implementation isn't feasible. Cover topics such as simplified declaration, immutability, nullability, value semantics, value equality, expressions, anonymous types, and customization. Engage with practical demonstrations using Sharplab and participate in a Q&A session to enhance your understanding of this powerful C# feature.
Overview
Syllabus
Intro
What is a record
Simplified Declaration
Immutability
Sharplab
Nullability
Value Semantics
Value Equality
Expressions
Anonymous Types
Customisation
Sharp Lab
Questions
Taught by
NDC Conferences