Browse Source

fixed bug where parameter is null.

newNRvisualizers
Mike Krüger 15 years ago
parent
commit
3ba911830f
  1. 6
      ICSharpCode.NRefactory/TypeSystem/ParameterListComparer.cs

6
ICSharpCode.NRefactory/TypeSystem/ParameterListComparer.cs

@ -17,7 +17,11 @@ namespace ICSharpCode.NRefactory.TypeSystem @@ -17,7 +17,11 @@ namespace ICSharpCode.NRefactory.TypeSystem
if (px.Count != py.Count)
return false;
for (int i = 0; i < px.Count; i++) {
if (!px[i].Type.Equals(py[i].Type))
var a = px[i];
var b = py[i];
if (a == null && b == null)
continue;
if (a == null || b == null || !a.Type.Equals(b.Type))
return false;
}
return true;

Loading…
Cancel
Save