Browse Source

Fixed bug in CecilReader that could cause it to confuse types with the same full name (but different number of type parameters)

4.0
Daniel Grunwald 14 years ago
parent
commit
9b9758974c
  1. 2
      src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/CecilReader.cs

2
src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/CecilReader.cs

@ -165,7 +165,7 @@ namespace ICSharpCode.SharpDevelop.Dom @@ -165,7 +165,7 @@ namespace ICSharpCode.SharpDevelop.Dom
if (typeParameterCount == 0 && name == "System.Object" && HasDynamicAttribute(attributeProvider, typeIndex))
return new DynamicReturnType(pc);
IClass c = pc.GetClass(name, typeParameterCount);
IClass c = pc.GetClass(name, typeParameterCount, LanguageProperties.CSharp, GetClassOptions.Default | GetClassOptions.ExactMatch);
if (c != null) {
return c.DefaultReturnType;
} else {

Loading…
Cancel
Save