/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (NombreProveedor != null) { hashCode = hashCode * 59 + NombreProveedor.GetHashCode(); } if (Identificacion != null) { hashCode = hashCode * 59 + Identificacion.GetHashCode(); } if (TipoConvenio != null) { hashCode = hashCode * 59 + TipoConvenio.GetHashCode(); } if (FechaVigencia != null) { hashCode = hashCode * 59 + FechaVigencia.GetHashCode(); } if (Correo != null) { hashCode = hashCode * 59 + Correo.GetHashCode(); } /*if (Pais != null) * hashCode = hashCode * 59 + Pais.GetHashCode();*/ if (Ciudad != null) { hashCode = hashCode * 59 + Ciudad.GetHashCode(); } if (Endpoint != null) { hashCode = hashCode * 59 + Endpoint.GetHashCode(); } if (TemplateEntrada != null) { hashCode = hashCode * 59 + TemplateEntrada.GetHashCode(); } if (TemplateSalida != null) { hashCode = hashCode * 59 + TemplateSalida.GetHashCode(); } if (EstadoConvenio != null) { hashCode = hashCode * 59 + EstadoConvenio.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { return(_identificacion.GetHashCode()); }