ref struct

A value type restricted to the stack so it cannot outlive the memory it refers to.

What is ref struct in C#?

ref struct — A value type restricted to the stack so it cannot outlive the memory it refers to.

ref struct BufferView
{
    Span<byte> bytes;
}

Level: Master · More C# terms at this level

Updated