StructRef Class

Definition

Refers to a live ref struct for the duration of an intercepted call. A class cannot store a ref struct, so this keeps the address of that stack slot. The generic StructRef<T> is added when compile-time stunts and unsafe blocks are enabled, the language version (C# 13) and the runtime (.NET 9) support allows ref struct, and the compilation does not already define it.

public class StructRef
Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Methods (3)