public override int GetHashCode() { unchecked { return((Id.GetHashCode() * 397) ^ (Slug != null ? Slug.GetHashCode() : 0)); } }
public override int GetHashCode() { unchecked { return((Id.GetHashCode() * 397) ^ (Slug?.GetHashCode() ?? 0)); } }
public override int GetHashCode() { unchecked { return((DeveloperId * 397) ^ (Slug != null ? Slug.GetHashCode() : 0)); } }
/// <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 { var hash = 41; // Suitable nullity checks etc, of course :) if (ContentType != null) { hash = hash * 57 + ContentType.GetHashCode(); } if (Slug != null) { hash = hash * 57 + Slug.GetHashCode(); } if (UserAgent != null) { hash = hash * 57 + UserAgent.GetHashCode(); } if (Id != null) { hash = hash * 57 + Id.GetHashCode(); } if (Rid != null) { hash = hash * 57 + Rid.GetHashCode(); } if (Ts != null) { hash = hash * 57 + Ts.GetHashCode(); } if (Self != null) { hash = hash * 57 + Self.GetHashCode(); } if (Etag != null) { hash = hash * 57 + Etag.GetHashCode(); } if (Permissions != null) { hash = hash * 57 + Permissions.GetHashCode(); } return(hash); } }
public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ (Slug != null ? Slug.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Id != null?Id.GetHashCode() : 0; hashCode = hashCode * 397 ^ (Slug != null ? Slug.GetHashCode() : 0); hashCode = hashCode * 397 ^ (DisplayName != null ? DisplayName.GetHashCode() : 0); hashCode = hashCode * 397 ^ (Status != null ? Status.GetHashCode() : 0); hashCode = hashCode * 397 ^ Verified.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Count; hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Display != null ? Display.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Id; hashCode = (hashCode * 397) ^ MenuOrder; hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Parent; hashCode = (hashCode * 397) ^ (Slug != null ? Slug.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (Slug != null ? Slug.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Supply.GetHashCode(); hashCode = (hashCode * 397) ^ MarketCap.GetHashCode(); hashCode = (hashCode * 397) ^ Price.GetHashCode(); hashCode = (hashCode * 397) ^ Volume.GetHashCode(); hashCode = (hashCode * 397) ^ Change.GetHashCode(); hashCode = (hashCode * 397) ^ Change1Hour.GetHashCode(); hashCode = (hashCode * 397) ^ Change1Week.GetHashCode(); hashCode = (hashCode * 397) ^ AllTimeHigh.GetHashCode(); hashCode = (hashCode * 397) ^ AllTimeLow.GetHashCode(); hashCode = (hashCode * 397) ^ EarliestKnownPrice.GetHashCode(); hashCode = (hashCode * 397) ^ EarliestTradeDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Logo != null ? Logo.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Attributes != null?Attributes.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (CatalogVisibility != null ? CatalogVisibility.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Categories != null ? Categories.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ExternalUrl != null ? ExternalUrl.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Featured.GetHashCode(); hashCode = (hashCode * 397) ^ Id; hashCode = (hashCode * 397) ^ (Images != null ? Images.GetHashCode() : 0); hashCode = (hashCode * 397) ^ InStock.GetHashCode(); hashCode = (hashCode * 397) ^ ManageStock.GetHashCode(); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ OnSale.GetHashCode(); hashCode = (hashCode * 397) ^ ParentId; hashCode = (hashCode * 397) ^ (Permalink != null ? Permalink.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Price != null ? Price.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PriceHtml != null ? PriceHtml.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Purchasable.GetHashCode(); hashCode = (hashCode * 397) ^ (RegularPrice != null ? RegularPrice.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (RelatedIds != null ? RelatedIds.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SalePrice != null ? SalePrice.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShortDescription != null ? ShortDescription.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Sku != null ? Sku.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Slug != null ? Slug.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (StockQuantity != null ? StockQuantity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Tags != null ? Tags.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TaxClass != null ? TaxClass.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TaxStatus != null ? TaxStatus.GetHashCode() : 0); hashCode = (hashCode * 397) ^ TotalSales; hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Virtual.GetHashCode(); 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 hash = hash * 59 + Id.GetHashCode(); if (Title != null) { hash = hash * 59 + Title.GetHashCode(); } if (Slug != null) { hash = hash * 59 + Slug.GetHashCode(); } return(hash); } }
public override int GetHashCode() { return(OwnerScreenName.GetHashCode() ^ Slug.GetHashCode()); }
public override int GetHashCode() { return(Slug != null?Slug.GetHashCode() : base.GetHashCode()); }
public override int GetHashCode() => Slug.GetHashCode();