Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

Span<T>

A window onto part of an array or other memory, without copying it.

Span is a ref struct describing a contiguous region of memory (array, stackalloc or native) that can be sliced without allocation; it cannot live on the heap or across an await.

Examples

  • ReadOnlySpan<char> year = "2026-09-26".AsSpan(0, 4); looks at the first four characters without copying them.

Read the full section →