SizeConst of MarshalAs(ByValTStr) loaded by MetadataLoadContext always returns zero...
authorBadre BSAILA <54767641+pedrobsaila@users.noreply.github.com>
Tue, 26 Oct 2021 21:03:13 +0000 (23:03 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Oct 2021 21:03:13 +0000 (14:03 -0700)
commit088abc75b58021541af60bee49577f45aa5a84f3
treed3d8340033dcc750e7d6fe1c868528192a39a713
parentae6df091d535ca67b8cef6b020418421c40332e2
SizeConst of MarshalAs(ByValTStr) loaded by MetadataLoadContext always returns zero (#60714)

* SizeConst of MarshalAs(ByValTStr) loaded by MetadataLoadContext always returns zero

* add separate case for UnmanagedType.ByValTStr and reuse existing test
src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/CustomAttributes/Ecma/EcmaCustomAttributeHelpers.cs
src/libraries/System.Reflection.MetadataLoadContext/tests/src/SampleMetadata/SampleMetadata.cs
src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/CustomAttributes/DllImportTests.cs