Тонкости использования ref struct при работе с асинхронными методами.
https://blogs.endjin.com/2020/03/high-performance-c-a-test-pattern-for-ref-structs
#ref #struct #async
https://blogs.endjin.com/2020/03/high-performance-c-a-test-pattern-for-ref-structs
#ref #struct #async
Endjin
High-performance C#: a test pattern for ref structs | endjin
C# 7.2 introduce ref structs, a new kind of type (Span is a ref struct) designed to support certain high performance scenarios. There are constraints around their use, and when writing unit tests for our Ais.Net parser, this caused some challenges. This blog…