PinnedMarshal after marshalling in unmanaged to managed (#90117)
authorJackson Schuster <36744439+jtschuster@users.noreply.github.com>
Tue, 8 Aug 2023 22:37:37 +0000 (17:37 -0500)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2023 22:37:37 +0000 (15:37 -0700)
commit38ae4d3729f4fe1069b362309cc1b9bd5241e997
tree821a628bc84604c5e7080b4e1278991bbf06195d
parent38014ae361a29ac9046d9bf6f7f1e2de0f930d97
PinnedMarshal after marshalling in unmanaged to managed (#90117)

PinnedMarshal has the "FromManaged" call in stateful marshallers, so that needs to happen before marshal in unmanaged to managed stubs.
src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/UnmanagedToManagedStubGenerator.cs
src/libraries/System.Runtime.InteropServices/tests/ComInterfaceGenerator.Tests/RcwAroundCcwTests.cs
src/libraries/System.Runtime.InteropServices/tests/ComInterfaceGenerator.Tests/UnmanagedToManagedCustomMarshallingTests.cs
src/libraries/System.Runtime.InteropServices/tests/TestAssets/SharedTypes/ComInterfaces/IStatefulMarshalling.cs
src/libraries/System.Runtime.InteropServices/tests/TestAssets/SharedTypes/ComInterfaces/IStatelessCollectionStatelessElement.cs
src/libraries/System.Runtime.InteropServices/tests/TestAssets/SharedTypes/ComInterfaces/IStatelessMarshalling.cs