LANGUAGE
ref struct
Ref-like value type subject to escape restrictions; cannot be boxed.
Formal Syntax & Structure
csharp syntaxcsharp
ref struct Name { /* members */ }Working Example
Example Snippetcsharp
ref struct Counter { public int Value; }Ref-like value type subject to escape restrictions; cannot be boxed.
ref struct Name { /* members */ }ref struct Counter { public int Value; }