public override int GetHashCode() { unchecked { var hashCode = (LogicalName != null ? LogicalName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (HostName != null ? HostName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ HostGuid.GetHashCode(); return(hashCode); } }
public bool Equals(EndpointInstanceId other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(LogicalName, other.LogicalName) && string.Equals(HostName, other.HostName) && HostGuid.Equals(other.HostGuid)); }