public override int GetHashCode() { int hash = 1; if (ImageVersionId.Length != 0) { hash ^= ImageVersionId.GetHashCode(); } if (IsDefault != false) { hash ^= IsDefault.GetHashCode(); } hash ^= supportedPythonVersions_.GetHashCode(); if (releaseDate_ != null) { hash ^= ReleaseDate.GetHashCode(); } if (CreationDisabled != false) { hash ^= CreationDisabled.GetHashCode(); } if (UpgradeDisabled != false) { hash ^= UpgradeDisabled.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); if (ContextName != null) { hash = hash * 59 + ContextName.GetHashCode(); } hash = hash * 59 + IsDefault.GetHashCode(); if (CodeName != null) { hash = hash * 59 + CodeName.GetHashCode(); } if (Value != null) { hash = hash * 59 + Value.GetHashCode(); } if (DisplaySortOrder != null) { hash = hash * 59 + DisplaySortOrder.GetHashCode(); } return(hash); } }
/// <summary> /// Autogenerated /// </summary> public override int GetHashCode() { var hashCode = -1042057239; hashCode = hashCode * -1521134295 + base.GetHashCode(); hashCode = hashCode * -1521134295 + IsDefault.GetHashCode(); return(hashCode); }
private int ComputeIdentity() { var stateHash = TypePair.GetHashCode() ^ ReceiverConstructorInfo.GetHashCode() ^ ExecutionClause.GetHashCode() ^ IsDefault.GetHashCode(); return(HashCodeHelper.ResolveHashForType(stateHash, GetType())); }
/// <summary> /// /// </summary> /// <returns></returns> public override int GetHashCode() { int hash = 17; hash = hash * 23 + Id.GetHashCode(); hash = hash * 23 + OrgId.GetHashCode(); hash = hash * 23 + IsDefault.GetHashCode(); hash = hash * 23 + Name.GetHashCode(); hash = hash * 23 + Type.GetHashCode(); hash = hash * 23 + Url.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { var result = Type != null?Type.GetHashCode() : 0; result = (result * 397) ^ (Id != null ? Id.GetHashCode() : 0); result = (result * 397) ^ HasRulesDefined.GetHashCode(); result = (result * 397) ^ IsDefault.GetHashCode(); result = (result * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0); result = (result * 397) ^ (Name != null ? Name.GetHashCode() : 0); return(result); } }
public override int GetHashCode() { var hashCode = 1927817751; hashCode = hashCode * -1521134295 + IsDefault.GetHashCode(); hashCode = hashCode * -1521134295 + ParsedSuccessfully.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name); hashCode = hashCode * -1521134295 + EqualityComparer <Settings> .Default.GetHashCode(Settings); hashCode = hashCode * -1521134295 + EqualityComparer <IEnumerable <SqlMapDefinition> > .Default.GetHashCode(Maps); return(hashCode); }
/// <summary> /// Serves as a hash function for a Currency. /// GetHashCode is suitable for use in hashing algorithms and data /// structures like a hash table. /// </summary> /// <returns>A hash code for the current Currency.</returns> public override int GetHashCode() { int hash = (RegionInfo.ISOCurrencySymbol.GetHashCode() ^ ExchangeRate.GetHashCode() ^ IsDefault.GetHashCode() ^ IsActive.GetHashCode()); foreach (Denomination denom in Denominations) { hash ^= denom.GetHashCode(); } return(hash); }
/// <summary> /// /// </summary> /// <returns></returns> public override int GetHashCode() { int hash = 17; hash = hash * 23 + Id.GetHashCode(); hash = hash * 23 + OrgId.GetHashCode(); hash = hash * 23 + Name.GetHashCode(); hash = hash * 23 + Type.GetHashCode(); hash = hash * 23 + IsDefault.GetHashCode(); hash = hash * 23 + DisableResolveMessage.GetHashCode(); hash = hash * 23 + SendReminder.GetHashCode(); hash = hash * 23 + IncludeImage.GetHashCode(); hash = hash * 23 + SendOnAllAlerts.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { var hashCode = 697218593; hashCode = hashCode * -1521134295 + ID.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description); hashCode = hashCode * -1521134295 + Group.GetHashCode(); hashCode = hashCode * -1521134295 + GroupAsInt.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(GroupDisplayName); hashCode = hashCode * -1521134295 + EqualityComparer <HashSet <int> > .Default.GetHashCode(PropertyTypes); hashCode = hashCode * -1521134295 + IsDefault.GetHashCode(); hashCode = hashCode * -1521134295 + IsMutable.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <IEnumerable <string> > .Default.GetHashCode(PropertyNames); return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks if (Id != null) { hash = hash * 59 + Id.GetHashCode(); } if (Name != null) { hash = hash * 59 + Name.GetHashCode(); } if (Value != null) { hash = hash * 59 + Value.GetHashCode(); } if (IsDefault != null) { hash = hash * 59 + IsDefault.GetHashCode(); } if (Type != null) { hash = hash * 59 + Type.GetHashCode(); } return(hash); } }
/// <internalonly/> public override int GetHashCode() { return(((int)MethodType).GetHashCode() ^ IsDefault.GetHashCode()); }
public override int GetHashCode() => ((int)MethodType).GetHashCode() ^ IsDefault.GetHashCode();
/// <summary> /// Calculates the hash code of the object. /// </summary> /// <returns>The created hash code.</returns> public override int GetHashCode() { return(Key.GetHashCode() ^ IsDefault.GetHashCode() ^ Type.GetHashCode() ^ Priority.GetHashCode() ^ SubFolder.GetHashCode()); }
public override int GetHashCode() => unchecked ( IsDefault.GetHashCode() + (Object?.GetHashCode() ?? 0) + (TypeDeclaration?.GetHashCode() ?? 0));