Fix mscorlib 4.0.0.0 reference added by Rewrite.exe

This commit is contained in:
Fraser Waters 2017-08-26 22:17:04 +01:00
parent fd4871aa87
commit a498da9448

View file

@ -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.