From 36f4342e9e0cf6568f743cca2bd03764de984567 Mon Sep 17 00:00:00 2001 From: Manodasan Wignarajah Date: Mon, 19 Oct 2020 22:46:32 -0700 Subject: [PATCH] Fix type marshaling. --- WinRT.Runtime/Projections/Type.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/WinRT.Runtime/Projections/Type.cs b/WinRT.Runtime/Projections/Type.cs index 429d45973..df123c8d8 100644 --- a/WinRT.Runtime/Projections/Type.cs +++ b/WinRT.Runtime/Projections/Type.cs @@ -72,6 +72,12 @@ public static Type GetAbi(Marshaler m) { return null; } + + if(value.Kind == TypeKind.Custom) + { + return global::System.Type.GetType(name); + } + return TypeNameSupport.FindTypeByName(name.AsSpan()).type; }