Low-level struct improvements in C# 11
C# 11 brings some major improvements for structs. You remember Span<T>
, which you couldn't create?
Now you can. C# 11 allows ref
fields in a struct. Why this is a cool thing and what you can do with it, you will see in a minute.