Explicitly handle char marshalling in OleVariant::GetNativeMet… (dotnet/coreclr#26218)
authorJeremy Koritzinsky <jekoritz@microsoft.com>
Fri, 16 Aug 2019 22:33:06 +0000 (15:33 -0700)
committerGitHub <noreply@github.com>
Fri, 16 Aug 2019 22:33:06 +0000 (15:33 -0700)
commite6167661e95da5956ed047989937c7a4b6a3e76b
treed4b62339e45d0142a08ad714fa31b3b2ece55bca
parentf7dc47177da43683021112c40ca44e9827bee726
Explicitly handle char marshalling in OleVariant::GetNativeMet… (dotnet/coreclr#26218)

* Explicitly handle char marshalling in OleVariant::GetNativeMethodTableForVarType.

* Added test case for ByVal Unicode Char Array.

* Fix contracts and remove unneeded GC transition.

Commit migrated from https://github.com/dotnet/coreclr/commit/72ceb36dbd4777461740e25099c83d9be5b3a7ff
src/coreclr/src/vm/olevariant.cpp
src/coreclr/tests/src/Interop/StructMarshalling/PInvoke/MarshalStructAsLayoutSeq.cs
src/coreclr/tests/src/Interop/StructMarshalling/PInvoke/MarshalStructAsParamDLL.cpp
src/coreclr/tests/src/Interop/StructMarshalling/PInvoke/MarshalStructAsParamDLL.h
src/coreclr/tests/src/Interop/StructMarshalling/PInvoke/Struct.cs