MOFAKH.COM
← Back to profile
C#

Records, with-expressions and immutability

unwrittenOutline
Note to self
Not written yet. This is the outline I am working from — it will be filled in as I go through the topic.
  • Positional records, init-only setters and what the compiler generates
  • with-expressions: shallow copy semantics and the nested-object trap
  • record vs record struct — allocation and equality trade-offs
  • Where immutability stops helping: EF Core entities and mutable collections