concept ref - like struct in category c#

appears as: ref-like structs, ref-like struct
C# in Depth, Fourth Edition

This is an excerpt from Manning's book C# in Depth, Fourth Edition.

C# 7.2 brought another raft of ref-related features: in parameters, read-only ref locals and returns, read-only structs, and ref-like structs. These were complementary to the 7.0 features but still appeared to be making the language more complicated for the benefit of a small set of users.

Additionally, complicated rules[3] indicate how ref local variables of ref-like types can be used. I suggest trusting the compiler here; if your code fails to compile because of ref-like structs, you’re likely trying to make something available at a point where it will no longer be alive on the stack. With this set of rules keeping values on the stack, you can finally look at using the poster child for ref-like structs: Span<T>.