From a498da9448ce84b034bc6f39b144465cb7c966ad Mon Sep 17 00:00:00 2001 From: Fraser Waters Date: Sat, 26 Aug 2017 22:17:04 +0100 Subject: [PATCH] Fix mscorlib 4.0.0.0 reference added by Rewrite.exe --- src/Generator.Rewrite/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator.Rewrite/Program.cs b/src/Generator.Rewrite/Program.cs index f028ff37..8b2bfc17 100644 --- a/src/Generator.Rewrite/Program.cs +++ b/src/Generator.Rewrite/Program.cs @@ -936,7 +936,7 @@ namespace OpenTK.Rewrite } else if (p.IsArray) { - if (p.Name != method.Module.ImportReference(typeof(string[])).Name) + if (p.Name != "String[]") { // .Net treats 1d arrays differently than higher rank arrays. // 1d arrays are directly supported by instructions such as ldlen and ldelema.