/// <summary> /// Gets the hash code /// </summary> /// <returns>Returns HashCode</returns> public override int GetHashCode() { return(String.Format("{0}|{1}|{2}|{3}|", DisplayName.GetHashCode(), Description.GetHashCode(), Classification?.GetHashCode() ?? 0, Visibility.GetHashCode() ).GetHashCode()); }
/// <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 + CompleteScopeName.GetHashCode(); hash = 23 * hash + Classification.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { var hashCode = (Classification != null ? Classification.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CopyNumber; hashCode = (hashCode * 397) ^ BranchId; return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Returns HashCode</returns> public override int GetHashCode() { return(String.Format("{0}|{1}|{2}|{3}|{4}|{5}|", DisplayName.GetHashCode(), Description.GetHashCode(), Classification?.GetHashCode() ?? 0, Visibility.GetHashCode(), Photo.GetHashCode(), HiddenGroupMembershipEnabled.GetHashCode() ).GetHashCode()); }
public override int GetHashCode() { int hash = 1; if (detailCase_ == DetailOneofCase.Translation) { hash ^= Translation.GetHashCode(); } if (detailCase_ == DetailOneofCase.Classification) { hash ^= Classification.GetHashCode(); } if (detailCase_ == DetailOneofCase.ImageObjectDetection) { hash ^= ImageObjectDetection.GetHashCode(); } if (detailCase_ == DetailOneofCase.VideoClassification) { hash ^= VideoClassification.GetHashCode(); } if (detailCase_ == DetailOneofCase.VideoObjectTracking) { hash ^= VideoObjectTracking.GetHashCode(); } if (detailCase_ == DetailOneofCase.TextExtraction) { hash ^= TextExtraction.GetHashCode(); } if (detailCase_ == DetailOneofCase.TextSentiment) { hash ^= TextSentiment.GetHashCode(); } if (detailCase_ == DetailOneofCase.Tables) { hash ^= Tables.GetHashCode(); } if (AnnotationSpecId.Length != 0) { hash ^= AnnotationSpecId.GetHashCode(); } if (DisplayName.Length != 0) { hash ^= DisplayName.GetHashCode(); } hash ^= (int)detailCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <inheritdoc/> public override int GetHashCode() { unchecked { int result = SemanticName.GetHashCode(); result = (result * 397) ^ SemanticIndex.GetHashCode(); result = (result * 397) ^ Format.GetHashCode(); result = (result * 397) ^ Slot.GetHashCode(); result = (result * 397) ^ AlignedByteOffset.GetHashCode(); result = (result * 397) ^ Classification.GetHashCode(); result = (result * 397) ^ InstanceDataStepRate.GetHashCode(); return(result); } }
/// <inheritdoc/> public override int GetHashCode() { unchecked { var hashCode = SemanticName?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ SemanticIndex.GetHashCode(); hashCode = (hashCode * 397) ^ Format.GetHashCode(); hashCode = (hashCode * 397) ^ Slot.GetHashCode(); hashCode = (hashCode * 397) ^ AlignedByteOffset.GetHashCode(); hashCode = (hashCode * 397) ^ Classification.GetHashCode(); hashCode = (hashCode * 397) ^ InstanceDataStepRate.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 :) if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Rev != null) { hashCode = hashCode * 59 + Rev.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Source != null) { hashCode = hashCode * 59 + Source.GetHashCode(); } if (Start != null) { hashCode = hashCode * 59 + Start.GetHashCode(); } if (End != null) { hashCode = hashCode * 59 + End.GetHashCode(); } if (Classification != null) { hashCode = hashCode * 59 + Classification.GetHashCode(); } hashCode = hashCode * 59 + IsCrash.GetHashCode(); hashCode = hashCode * 59 + IsAutoAssigned.GetHashCode(); if (Properties != null) { hashCode = hashCode * 59 + Properties.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { int result = 7411; result = (result * 733) ^ Name.GetHashCode(); result = (result * 733) ^ Classification.GetHashCode(); result = (result * 733) ^ Date.GetHashCode(); result = (result * 733) ^ Indicator.GetHashCode(); result = (result * 733) ^ NumericIndicator.GetHashCode(); foreach (Settings s in DailySettings) { result = (result * 733) ^ s.GetHashCode(); } return(result); } }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.classification) { hashcode = (hashcode * 397) + Classification.GetHashCode(); } if (__isset.displayName) { hashcode = (hashcode * 397) + DisplayName.GetHashCode(); } if (__isset.totalBuddyCount) { hashcode = (hashcode * 397) + TotalBuddyCount.GetHashCode(); } if (__isset.popularContacts) { hashcode = (hashcode * 397) + TCollections.GetHashCode(PopularContacts); } } return(hashcode); }
public override int GetHashCode() { return(classification.GetHashCode()); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; // Suitable nullity checks etc, of course :) if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Industry != null) { hashCode = hashCode * 59 + Industry.GetHashCode(); } if (Classification != null) { hashCode = hashCode * 59 + Classification.GetHashCode(); } if (ListedDate != null) { hashCode = hashCode * 59 + ListedDate.GetHashCode(); } if (DelistedDate != null) { hashCode = hashCode * 59 + DelistedDate.GetHashCode(); } if (RegisteredCapital != null) { hashCode = hashCode * 59 + RegisteredCapital.GetHashCode(); } if (LegalRepresentative != null) { hashCode = hashCode * 59 + LegalRepresentative.GetHashCode(); } if (GeneralManager != null) { hashCode = hashCode * 59 + GeneralManager.GetHashCode(); } if (Secretary != null) { hashCode = hashCode * 59 + Secretary.GetHashCode(); } if (EmployeeCount != null) { hashCode = hashCode * 59 + EmployeeCount.GetHashCode(); } if (Province != null) { hashCode = hashCode * 59 + Province.GetHashCode(); } if (City != null) { hashCode = hashCode * 59 + City.GetHashCode(); } if (Office != null) { hashCode = hashCode * 59 + Office.GetHashCode(); } if (Email != null) { hashCode = hashCode * 59 + Email.GetHashCode(); } if (Website != null) { hashCode = hashCode * 59 + Website.GetHashCode(); } if (BusinessScope != null) { hashCode = hashCode * 59 + BusinessScope.GetHashCode(); } if (MainBusiness != null) { hashCode = hashCode * 59 + MainBusiness.GetHashCode(); } if (Introduction != null) { hashCode = hashCode * 59 + Introduction.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() => Classification.GetHashCode() + Attribute.GetHashCode();