+- Comprehensive support for proxying methods with byref-like (`ref struct`) parameter and return types, such as `Span<T>`. Until now, any `ref struct` values triggered exceptions during interception because DynamicProxy could not box them to `object` & transfer them into `IInvocation` instances. Now, byref-like values are represented in `IInvocation` instances with new substitute types `SpanReference<T>`, `ReadOnlySpanReference<T>`, and `ByRefLikeReference<TByRefLike>` which grant you indirect access to the actual values. Please [read the documentation for details](docs/dynamicproxy-byref-like-parameters.md). (@stakx, #665, #712)
0 commit comments