未验证 提交 1fa3eac8 编写于 作者: B Benjamin Petit 提交者: GitHub

Use '==' instead of 'Equals()' to test type equality in ServiceIdentifier (#90334)

上级 772e2586
......@@ -32,11 +32,11 @@ public bool Equals(ServiceIdentifier other)
{
if (ServiceKey == null && other.ServiceKey == null)
{
return ServiceType.Equals(other.ServiceType);
return ServiceType == other.ServiceType;
}
else if (ServiceKey != null && other.ServiceKey != null)
{
return ServiceType.Equals(other.ServiceType) && ServiceKey.Equals(other.ServiceKey);
return ServiceType == other.ServiceType && ServiceKey.Equals(other.ServiceKey);
}
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册