public override int GetHashCode() { int hash = 1; if (ItemId != 0) { hash ^= ItemId.GetHashCode(); } if (ItemType != 0) { hash ^= ItemType.GetHashCode(); } if (ItemDesc.Length != 0) { hash ^= ItemDesc.GetHashCode(); } if (ItemVoice.Length != 0) { hash ^= ItemVoice.GetHashCode(); } if (ItemPhiz.Length != 0) { hash ^= ItemPhiz.GetHashCode(); } if (Player != 0) { hash ^= Player.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ItemId != 0L) { hash ^= ItemId.GetHashCode(); } if (ItemLevel != 0) { hash ^= ItemLevel.GetHashCode(); } if (CoinCost != 0) { hash ^= CoinCost.GetHashCode(); } if (ItemSetId != 0L) { hash ^= ItemSetId.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ItemId != 0L) { hash ^= ItemId.GetHashCode(); } if (TrainerBuildupConfigId != 0) { hash ^= TrainerBuildupConfigId.GetHashCode(); } if (ScheduleId.Length != 0) { hash ^= ScheduleId.GetHashCode(); } if (U4.Length != 0) { hash ^= U4.GetHashCode(); } if (TrainerId != 0L) { hash ^= TrainerId.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (PlayerId.Length != 0) { hash ^= PlayerId.GetHashCode(); } if (ItemId.Length != 0) { hash ^= ItemId.GetHashCode(); } if (Reason.Length != 0) { hash ^= Reason.GetHashCode(); } if (Quantity != 0) { hash ^= Quantity.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hashCode = 1460876522; if (CategoryName != null) { hashCode += CategoryName.GetHashCode(); } if (Sku != null) { hashCode += Sku.GetHashCode(); } if (ItemId != null) { hashCode += ItemId.GetHashCode(); } if (ItemVariationId != null) { hashCode += ItemVariationId.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hash = 1; if (ItemId != 0L) { hash ^= ItemId.GetHashCode(); } if (U2 != 0L) { hash ^= U2.GetHashCode(); } if (ImageId.Length != 0) { hash ^= ImageId.GetHashCode(); } if (Rarity != 0) { hash ^= Rarity.GetHashCode(); } if (U5 != 0) { hash ^= U5.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ItemId != 0L) { hash ^= ItemId.GetHashCode(); } if (ItemSubCategory != 0) { hash ^= ItemSubCategory.GetHashCode(); } if (ItemImageName.Length != 0) { hash ^= ItemImageName.GetHashCode(); } if (ItemFrame != 0) { hash ^= ItemFrame.GetHashCode(); } if (ItemType != 0) { hash ^= ItemType.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ItemId != 0) { hash ^= ItemId.GetHashCode(); } if (GymId.Length != 0) { hash ^= GymId.GetHashCode(); } if (PlayerLatitude != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PlayerLatitude); } if (PlayerLongitude != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PlayerLongitude); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ItemId.Length != 0) { hash ^= ItemId.GetHashCode(); } if (Text.Length != 0) { hash ^= Text.GetHashCode(); } if (issueDate_ != null) { hash ^= IssueDate.GetHashCode(); } if (supplier_ != null) { hash ^= Supplier.GetHashCode(); } if (CustomerRef.Length != 0) { hash ^= CustomerRef.GetHashCode(); } if (Amount != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Amount); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ItemId.Length != 0) { hash ^= ItemId.GetHashCode(); } if (IsIap != false) { hash ^= IsIap.GetHashCode(); } if (currencyToBuy_ != null) { hash ^= CurrencyToBuy.GetHashCode(); } if (yieldsCurrency_ != null) { hash ^= YieldsCurrency.GetHashCode(); } if (yieldsItem_ != null) { hash ^= YieldsItem.GetHashCode(); } hash ^= Tags.GetHashCode(); if (Unknown7 != 0) { hash ^= Unknown7.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (ItemId != 0) { hash ^= ItemId.GetHashCode(); } if (IncubatorType != 0) { hash ^= IncubatorType.GetHashCode(); } if (UsesRemaining != 0) { hash ^= UsesRemaining.GetHashCode(); } if (PokemonId != 0UL) { hash ^= PokemonId.GetHashCode(); } if (StartKmWalked != 0D) { hash ^= StartKmWalked.GetHashCode(); } if (TargetKmWalked != 0D) { hash ^= TargetKmWalked.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ItemId.Length != 0) { hash ^= ItemId.GetHashCode(); } if (ProCode.Length != 0) { hash ^= ProCode.GetHashCode(); } if (Agency != 0) { hash ^= Agency.GetHashCode(); } if (AgencyType.Length != 0) { hash ^= AgencyType.GetHashCode(); } if (BdgYear != 0) { hash ^= BdgYear.GetHashCode(); } if (AdmdivCode.Length != 0) { hash ^= AdmdivCode.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { return((base.GetHashCode() * 397) ^ ItemId.GetHashCode()); } }
public override int GetHashCode() { int itemTypeHash = SmartCoreObjectType?.ItemId.GetHashCode() ?? -1; int itemIdHash = ItemId.GetHashCode(); return(itemTypeHash ^ itemIdHash); }
/// <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 (ItemId != null) { hashCode = hashCode * 59 + ItemId.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Price != null) { hashCode = hashCode * 59 + Price.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (ItemId != 0) { hash ^= ItemId.GetHashCode(); } if (ItemType != 0) { hash ^= ItemType.GetHashCode(); } if (ExpireMs != 0L) { hash ^= ExpireMs.GetHashCode(); } if (AppliedMs != 0L) { hash ^= AppliedMs.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ItemId != 0) { hash ^= ItemId.GetHashCode(); } if (LevelReplyNum != 0) { hash ^= LevelReplyNum.GetHashCode(); } if (LevelEachNumGem != 0) { hash ^= LevelEachNumGem.GetHashCode(); } if (LevelBuyMax != 0) { hash ^= LevelBuyMax.GetHashCode(); } if (PlotSwitch != 0) { hash ^= PlotSwitch.GetHashCode(); } if (MissionSwitch != 0) { hash ^= MissionSwitch.GetHashCode(); } if (SecondBuyCount != 0) { hash ^= SecondBuyCount.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ItemId != 0L) { hash ^= ItemId.GetHashCode(); } if (ImageId.Length != 0) { hash ^= ImageId.GetHashCode(); } if (Stars != 0) { hash ^= Stars.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (Role != 0) { hash ^= Role.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hashCode = -1376027413; hashCode = (hashCode * -1521134295) + ItemId.GetHashCode(); hashCode = (hashCode * -1521134295) + Quantity.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hashItemId = ItemId == 0 ? 0 : ItemId.GetHashCode(); int hashLineNumber = LineNumber == 0 ? 0 : LineNumber.GetHashCode(); int hashShipmentId = ShipmentId == "" ? 0 : ShipmentId.GetHashCode(); return(hashItemId * hashLineNumber * hashShipmentId); }
public override int GetHashCode() { var hashCode = 2004332272; hashCode = hashCode * -1521134295 + ItemId.GetHashCode(); hashCode = hashCode * -1521134295 + PlayerId.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hashCode = 320423494; hashCode = hashCode * -1521134295 + Volume.GetHashCode(); hashCode = hashCode * -1521134295 + ItemId.GetHashCode(); hashCode = hashCode * -1521134295 + Date.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hashItemId = ItemId == 0 ? 0 : ItemId.GetHashCode(); int hashItemName = Name == null ? 0 : Name.GetHashCode(); int hashUnitMeasurement = UnitMeasurement == null ? 0 : UnitMeasurement.GetHashCode(); int hashPrice = Price == 0.0 ? 0 : Price.GetHashCode(); return(hashItemId * hashItemName * hashUnitMeasurement + hashPrice); }
public override int GetHashCode() { var hashCode = -1919740922; hashCode = hashCode * -1521134295 + ItemId.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ItemName); return(hashCode); }
public override int GetHashCode() { unchecked // disable overflow, for the unlikely possibility that you { // are compiling with overflow-checking enabled int hash = 27; hash = (13 * hash) + ItemId.GetHashCode(); hash = (13 * hash) + ItemLang.GetHashCode(); return(hash); } }
public override int GetHashCode() { var hashCode = -212936922; hashCode = hashCode * -1521134295 + ItemId.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description); hashCode = hashCode * -1521134295 + Price.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + ItemId.GetHashCode(); hashcode = (hashcode * 397) + Count.GetHashCode(); } return(hashcode); }
public override int GetHashCode() { int hash = 1; if (ItemId != 0) hash ^= ItemId.GetHashCode(); if (EncounterId != 0UL) hash ^= EncounterId.GetHashCode(); if (SpawnPointId.Length != 0) hash ^= SpawnPointId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; }
public override int GetHashCode() { unchecked { int hashCode; hashCode = MoniTime.GetHashCode(); hashCode = (hashCode * 397) ^ StationId.GetHashCode(); hashCode = (hashCode * 397) ^ ItemId.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (ItemExchangeId != 0) { hash ^= ItemExchangeId.GetHashCode(); } if (ItemExchangeGroupId != 0) { hash ^= ItemExchangeGroupId.GetHashCode(); } if (ItemSetId != 0L) { hash ^= ItemSetId.GetHashCode(); } if (ItemId != 0L) { hash ^= ItemId.GetHashCode(); } if (Quantity != 0) { hash ^= Quantity.GetHashCode(); } if (ScheduleId.Length != 0) { hash ^= ScheduleId.GetHashCode(); } if (Limit != 0) { hash ^= Limit.GetHashCode(); } if (U8 != 0) { hash ^= U8.GetHashCode(); } if (U9 != 0) { hash ^= U9.GetHashCode(); } if (U10 != 0) { hash ^= U10.GetHashCode(); } if (U11 != 0L) { hash ^= U11.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void ItemIdEquality() { Guid id0 = Guid.NewGuid(); var ii0 = new ItemId(typeof(HeaderContent), id0); var ii1 = new ItemId(typeof(HeaderContent), new Guid(id0.ToString())); var ii2 = new ItemId(typeof(RestaurantContent), id0); var ii3 = new ItemId(typeof(HeaderContent), Guid.NewGuid()); Assert.IsTrue(ii0.Equals(ii1), ".Equals true"); Assert.IsTrue(ii0 == ii1, "== true"); Assert.IsFalse(ii0.Equals(ii2), ".Equals false by type"); Assert.IsFalse(ii0 == ii2, "== false by type"); Assert.IsFalse(ii1.Equals(ii3), ".Equals false by id"); Assert.IsFalse(ii1 == ii3, "== false by id"); Assert.IsFalse(ii0.GetHashCode() == ii2.GetHashCode(), "hash code by type"); Assert.IsFalse(ii1.GetHashCode() == ii3.GetHashCode(), "hash code by id"); }