public override int GetHashCode() { int hash = 1; if (ArtifactLink.Length != 0) { hash ^= ArtifactLink.GetHashCode(); } hash ^= originServerCerts_.GetHashCode(); if (ArtifactSignature.Length != 0) { hash ^= ArtifactSignature.GetHashCode(); } if (SubType.Length != 0) { hash ^= SubType.GetHashCode(); } if (Signature.Length != 0) { hash ^= Signature.GetHashCode(); } if (SignedTimeStamp.Length != 0) { hash ^= SignedTimeStamp.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Value.Length != 0) { hash ^= Value.GetHashCode(); } if (ContentType != 0) { hash ^= ContentType.GetHashCode(); } if (ArtifactSignature.Length != 0) { hash ^= ArtifactSignature.GetHashCode(); } if (SubType.Length != 0) { hash ^= SubType.GetHashCode(); } if (SignedTimeStamp.Length != 0) { hash ^= SignedTimeStamp.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hashCode = Format.GetHashCode(); hashCode = (hashCode * 397) ^ Type.GetHashCode(); hashCode = (hashCode * 397) ^ SubType.GetHashCode(); hashCode = (hashCode * 397) ^ Version.GetHashCode(); return(hashCode); } }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { unchecked { int hash = 17; hash = 23 * hash + Scope.GetHashCode(); hash = 23 * hash + (SubType == null ? 0 : SubType.GetHashCode()); hash = 23 * hash + (MetaData == null ? 0 : MetaData.GetHashCode()); return(hash); } }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Value.Length != 0) { hash ^= Value.GetHashCode(); } if (ContentType != global::Yoti.Auth.ProtoBuf.Attribute.ContentType.Undefined) { hash ^= ContentType.GetHashCode(); } if (ArtifactSignature.Length != 0) { hash ^= ArtifactSignature.GetHashCode(); } if (SubType.Length != 0) { hash ^= SubType.GetHashCode(); } if (SignedTimeStamp.Length != 0) { hash ^= SignedTimeStamp.GetHashCode(); } if (AssociatedSource.Length != 0) { hash ^= AssociatedSource.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 (Athlete != null) { hashCode = hashCode * 59 + Athlete.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (Distance != null) { hashCode = hashCode * 59 + Distance.GetHashCode(); } if (ElevationGain != null) { hashCode = hashCode * 59 + ElevationGain.GetHashCode(); } if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (IdStr != null) { hashCode = hashCode * 59 + IdStr.GetHashCode(); } if (Map != null) { hashCode = hashCode * 59 + Map.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (_Private != null) { hashCode = hashCode * 59 + _Private.GetHashCode(); } if (Starred != null) { hashCode = hashCode * 59 + Starred.GetHashCode(); } if (Timestamp != null) { hashCode = hashCode * 59 + Timestamp.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (SubType != null) { hashCode = hashCode * 59 + SubType.GetHashCode(); } if (CreatedAt != null) { hashCode = hashCode * 59 + CreatedAt.GetHashCode(); } if (UpdatedAt != null) { hashCode = hashCode * 59 + UpdatedAt.GetHashCode(); } if (EstimatedMovingTime != null) { hashCode = hashCode * 59 + EstimatedMovingTime.GetHashCode(); } if (Segments != null) { hashCode = hashCode * 59 + Segments.GetHashCode(); } return(hashCode); } }