API
ReadOnlySpan<T>
A ref-like read-only view, not an immutable backing store.
Formal Syntax & Structure
csharp syntaxcsharp
ReadOnlySpan<char> view = "Q=42".AsSpan();Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.ReadOnlySpan<char> view = "Q=42".AsSpan();