/// <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 (OdataContext != null) { hashCode = hashCode * 59 + OdataContext.GetHashCode(); } if (AccessRights != null) { hashCode = hashCode * 59 + AccessRights.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 (OdataContext != null) { hashCode = hashCode * 59 + OdataContext.GetHashCode(); } if (OdataType != null) { hashCode = hashCode * 59 + OdataType.GetHashCode(); } if (ParentOptionSetName != null) { hashCode = hashCode * 59 + ParentOptionSetName.GetHashCode(); } if (IsCustomOptionSet != null) { hashCode = hashCode * 59 + IsCustomOptionSet.GetHashCode(); } if (IsGlobal != null) { hashCode = hashCode * 59 + IsGlobal.GetHashCode(); } if (IsManaged != null) { hashCode = hashCode * 59 + IsManaged.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (ExternalTypeName != null) { hashCode = hashCode * 59 + ExternalTypeName.GetHashCode(); } if (OptionSetType != null) { hashCode = hashCode * 59 + OptionSetType.GetHashCode(); } if (IntroducedVersion != null) { hashCode = hashCode * 59 + IntroducedVersion.GetHashCode(); } if (MetadataId != null) { hashCode = hashCode * 59 + MetadataId.GetHashCode(); } if (HasChanged != null) { hashCode = hashCode * 59 + HasChanged.GetHashCode(); } if (Options != null) { hashCode = hashCode * 59 + Options.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (DisplayName != null) { hashCode = hashCode * 59 + DisplayName.GetHashCode(); } if (IsCustomizable != null) { hashCode = hashCode * 59 + IsCustomizable.GetHashCode(); } return(hashCode); } }