MOFAKH
.
COM
Profile
Topics
Recent
25 notes
C# — notes
+
Topics
C#
5
.NET
4
Docker
4
SQL
4
Networking
4
System design
4
C# — notes
Value types vs reference types
Jul 18, 2026 · 8 min
How async/await actually works
Jul 11, 2026 · 9 min
Records, with-expressions and immutability
outline
Span<T>, stackalloc and allocation-free parsing
outline
Nullable reference types in a legacy codebase
outline
← Back to profile
C#
Records, with-expressions and immutability
unwritten
—
Outline
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
Previous
How async/await actually works
Next
Span<T>, stackalloc and allocation-free parsing