Ejemplo n.º 1
0
 /// <summary>
 /// 判断是否TCP服务端口信息
 /// </summary>
 /// <param name="other">TCP服务端口信息</param>
 /// <returns>是否同一TCP服务端口信息</returns>
 public bool Equals(domain other)
 {
     return(other != null && GetHashCode() == other.GetHashCode() &&
            (IsFullName ? other.IsFullName : !other.IsFullName) &&
            (IsOnlyHost ? other.IsOnlyHost : !other.IsOnlyHost) &&
            DomainData.equal(other.DomainData) && Host.Equals(other.Host) && SslHost.Equals(other.SslHost));
 }