Rewrite Type.GetTypeFromProgID in C# (#42546)
authorJan Kotas <jkotas@microsoft.com>
Wed, 23 Sep 2020 01:08:15 +0000 (18:08 -0700)
committerGitHub <noreply@github.com>
Wed, 23 Sep 2020 01:08:15 +0000 (18:08 -0700)
commit0a69f0262ee762252d2636b49b82c6030c386046
tree84853d2ace3ffbfe9a59eef641118b604745d0fc
parenta0e18317000953ac7cb64de513db1dfceadb20c7
Rewrite Type.GetTypeFromProgID in C# (#42546)

- Move CoreRT managed implementation of Type.GetTypeFromProgID to CoreCLR
- Delete dead code and unnecessary levels of indirection
- Add tests for Type.GetTypeFromProgID and Type.GetTypeFromCLSID
23 files changed:
src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.CoreCLR.cs
src/coreclr/src/System.Private.CoreLib/src/System/RuntimeType.CoreCLR.cs
src/coreclr/src/System.Private.CoreLib/src/System/Type.CoreCLR.cs
src/coreclr/src/vm/ecalllist.h
src/coreclr/src/vm/eehash.cpp
src/coreclr/src/vm/eehash.h
src/coreclr/src/vm/interoputil.cpp
src/coreclr/src/vm/interoputil.h
src/coreclr/src/vm/marshalnative.cpp
src/coreclr/src/vm/marshalnative.h
src/coreclr/src/vm/reflectioninvocation.cpp
src/coreclr/src/vm/reflectioninvocation.h
src/coreclr/src/vm/runtimecallablewrapper.cpp
src/coreclr/src/vm/runtimecallablewrapper.h
src/libraries/Common/src/Interop/Windows/Ole32/Interop.CLSIDFromProgID.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.NoCom.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Unix.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Windows.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.cs
src/libraries/System.Private.CoreLib/src/System/Type.cs
src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetTypeFromCLSIDTests.cs
src/mono/netcore/System.Private.CoreLib/src/System/Type.Mono.cs