You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow ref struct on Generic ThrowHelper methods #1127
This would allow ref structs to be used in pattern matching with a ThrowHelper case, using the new allow ref struct "anti-constraint".
API breakdown
This changes nothing except allowable use cases for existing ThrowHelper APIs.
Usage example
I encountered a situation in my code where I wanted to pattern match and return a ref struct. I found I could not use the ThrowHelper because it was a ref struct.
Here's an example of another imaginable situation utilizing the Span<T>.
Activity