public override int GetHashCode() { int hash = 1; if (ApplicationId.Length != 0) { hash ^= ApplicationId.GetHashCode(); } if (MaxResults != 0) { hash ^= MaxResults.GetHashCode(); } if (StartToken.Length != 0) { hash ^= StartToken.GetHashCode(); } if (Timestamp != 0UL) { hash ^= Timestamp.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 (UserID != null) { hashCode = hashCode * 59 + UserID.GetHashCode(); } if (MaxResults != null) { hashCode = hashCode * 59 + MaxResults.GetHashCode(); } if (PageToken != null) { hashCode = hashCode * 59 + PageToken.GetHashCode(); } if (ClientData != null) { hashCode = hashCode * 59 + ClientData.GetHashCode(); } return(hashCode); } }
/// <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 :) hashCode = hashCode * 59 + Enabled.GetHashCode(); hashCode = hashCode * 59 + MaxResults.GetHashCode(); hashCode = hashCode * 59 + Width.GetHashCode(); return hashCode; } }
public override int GetHashCode() => Hash.CombineHashCodes( SchemaId.GetHashCode(), PublicationId.GetHashCode(), Sort == null ? 0 : Sort.GetHashCode(), MaxResults.GetHashCode(), PageSize.GetHashCode(), Start.GetHashCode(), Cursor == null ? 0 : Cursor.GetHashCode());