From d2930b932dc6450018a2d0746f4f6abc8827a10d Mon Sep 17 00:00:00 2001 From: sgarg Date: Tue, 28 Feb 2017 16:33:34 -0800 Subject: [PATCH] Corrected generic type FullnName property (fix #1039) --- JSIL.Libraries/Sources/JSIL.Core.js | 4 ++++ .../CreateTypeFromName_Issue1039.cs | 20 +++++++++++++++++++ Tests/SimpleTests.csproj | 1 + 3 files changed, 25 insertions(+) create mode 100644 Tests/SimpleTestCases/CreateTypeFromName_Issue1039.cs diff --git a/JSIL.Libraries/Sources/JSIL.Core.js b/JSIL.Libraries/Sources/JSIL.Core.js index 773d5ff9c..d56bda13d 100644 --- a/JSIL.Libraries/Sources/JSIL.Core.js +++ b/JSIL.Libraries/Sources/JSIL.Core.js @@ -331,6 +331,10 @@ JSIL.$GetSpecialType = function (name) { for (var i = 0, l = ga.length; i < l; i++) { var type = ga[i]; result += "[" + type.get_AssemblyQualifiedName() + "]"; + if(i(); + var dictionaryType = dictionary.GetType(); + var type = Type.GetType(dictionaryType.FullName); + if (type != null) + Activator.CreateInstance(type); + Console.WriteLine( + "{0},{1}", dictionaryType.Name,dictionaryType.FullName + ); + } +} + +public class A { } +public class B { } \ No newline at end of file diff --git a/Tests/SimpleTests.csproj b/Tests/SimpleTests.csproj index c56b4840a..43e4af6fb 100644 --- a/Tests/SimpleTests.csproj +++ b/Tests/SimpleTests.csproj @@ -145,6 +145,7 @@ +