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
Unsafe.AsRef expects a pointer type so we'd have to emit ref Unsafe.AsRef<T>((void*)(long)(IntPtr)InterpreterStub.Dispatch(...)).
That doesn't make the code any more readable.
I guess using Unsafe.AsRef makes sense when converting to a reference to a managed type, where forming the pointer type T* isn't valid. But ILSpy currently doesn't have logic to detect whether a type would satisfy the T: unmanaged constraint.
Class3.Method6
how about emit Unsafe.AsRef instead of ref *(T*)(long)
stub.zip
The text was updated successfully, but these errors were encountered: