Browse Source

Fix detection of anonymous types for some strange compiler... (not mcs)

pull/1108/head
Siegfried Pammer 7 years ago
parent
commit
a951e566c0
  1. 2
      ICSharpCode.Decompiler/NRExtensions.cs

2
ICSharpCode.Decompiler/NRExtensions.cs

@ -68,7 +68,7 @@ namespace ICSharpCode.Decompiler @@ -68,7 +68,7 @@ namespace ICSharpCode.Decompiler
public static bool HasGeneratedName(this IType type)
{
return type.Name.StartsWith("<", StringComparison.Ordinal);
return type.Name.StartsWith("<", StringComparison.Ordinal) || type.Name.Contains("<");
}
public static bool IsAnonymousType(this IType type)

Loading…
Cancel
Save