提交 cc6b816a 编写于 作者: C CyrusNajmabadi

Share code.

上级 66d7bc66
......@@ -53,20 +53,8 @@ public int CompareTo(SymbolResult other)
return diff;
}
var names1 = this.NameParts;
var names2 = other.NameParts;
for (var i = 0; i < Math.Min(names1.Count, names2.Count); i++)
{
var comp = names1[i].CompareTo(names2[i]);
if (comp != 0)
{
return comp;
}
}
return names1.Count - names2.Count;
return INamespaceOrTypeSymbolExtensions.CompareNameParts(
this.NameParts, other.NameParts);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册