public override int GetHashCode() { int hash = 1; if (PathPrefix.Length != 0) { hash ^= PathPrefix.GetHashCode(); } if (Format != 0) { hash ^= Format.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <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 (ServiceRanking != null) { hashCode = hashCode * 59 + ServiceRanking.GetHashCode(); } if (PathPrefix != null) { hashCode = hashCode * 59 + PathPrefix.GetHashCode(); } if (CreateVersion != null) { hashCode = hashCode * 59 + CreateVersion.GetHashCode(); } return(hashCode); } }