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#
Span<T>, stackalloc and allocation-free parsing
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.
Span<T> vs ReadOnlySpan<T> vs Memory<T> — when each is legal
stackalloc, safety rules, and why a Span cannot cross an await
Parsing a CSV line with zero allocations
Benchmarking it honestly with BenchmarkDotNet
Previous
Records, with-expressions and immutability
Next
Nullable reference types in a legacy codebase