public override int GetHashCode() { unchecked { var hashCode = CategoryName?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ CertificationRequisitionId.GetHashCode(); hashCode = (hashCode * 397) ^ ContentId.GetHashCode(); hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ Id.GetHashCode(); hashCode = (hashCode * 397) ^ (InternalCategoryName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (InternalSubcategoryName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ IsCertification.GetHashCode(); hashCode = (hashCode * 397) ^ IsMythic.GetHashCode(); hashCode = (hashCode * 397) ^ IsWearable.GetHashCode(); hashCode = (hashCode * 397) ^ HideIfNotAcquired.GetHashCode(); hashCode = (hashCode * 397) ^ (LargeImageUrl?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ LevelRequirement; hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Rarity?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)RarityType; hashCode = (hashCode * 397) ^ SellPrice; hashCode = (hashCode * 397) ^ (SubcategoryName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ SubcategoryOrder; hashCode = (hashCode * 397) ^ (SupportedGameModes?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)UseType; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = ContentId.GetHashCode(); hashCode = (hashCode * 397) ^ CreditPrice; hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ Flair.GetHashCode(); hashCode = (hashCode * 397) ^ (int)GiftableAcquisitionMethod; hashCode = (hashCode * 397) ^ Id.GetHashCode(); hashCode = (hashCode * 397) ^ IsFeatured.GetHashCode(); hashCode = (hashCode * 397) ^ IsGiftOnly.GetHashCode(); hashCode = (hashCode * 397) ^ IsNew.GetHashCode(); hashCode = (hashCode * 397) ^ IsPurchasableFromMarketplace.GetHashCode(); hashCode = (hashCode * 397) ^ IsPurchasableWithCredits.GetHashCode(); hashCode = (hashCode * 397) ^ IsStack.GetHashCode(); hashCode = (hashCode * 397) ^ (StackedRequisitionPacks?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (LargeImageUrl?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MediumImageUrl?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ MerchandisingOrder; hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (SmallImageUrl?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ XboxMarketplaceProductId.GetHashCode(); hashCode = (hashCode * 397) ^ (XboxMarketplaceProductUrl?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (HasUsername) { hash ^= Username.GetHashCode(); } if (HasFullName) { hash ^= FullName.GetHashCode(); } if (HasImageUrl) { hash ^= ImageUrl.GetHashCode(); } if (HasLargeImageUrl) { hash ^= LargeImageUrl.GetHashCode(); } if (HasFirstName) { hash ^= FirstName.GetHashCode(); } if (HasLastName) { hash ^= LastName.GetHashCode(); } if (HasFacebookUid) { hash ^= FacebookUid.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }