-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-Interop-coreclrhelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Milestone
Description
#103 added support for marshalling generics, but we don't seem to have test coverage for the Marshal APIs with this:
- Marshal.OffsetOf
- Marshal.SizeOf
- Marshal.PtrToStructure
- Marshal.StructureToPtr
- Others?
E.g. Marshal.OffsetOf already worked on desktop CLR because the runtime didn't do a good job of blocking it (and it also raises a question as to whether the code paths this is taking are quite different that made it so that blocking didn't take place). We don't have tests that the returned numbers are actually good.
We might as well throw in a test for marshalling as UnmanagedType.AsAny because I'm sure WinForms is keen to use that (/snark).
I'm making this a .NET 5 issue since this is a new feature.
Metadata
Metadata
Assignees
Labels
area-Interop-coreclrhelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors