public override int GetHashCode() { return((Symbol == null ? 0 : Symbol.GetHashCode()) ^ SymbolScale.GetHashCode() ^ SymbolOffset.GetHashCode() ^ SymbolRotation.GetHashCode() ^ UnitType.GetHashCode() ^ SymbolType.GetHashCode() ^ Opacity.GetHashCode() ^ Width.GetHashCode() ^ Height.GetHashCode() ^ base.GetHashCode()); }
public override int GetHashCode() { unchecked { return((_value.GetHashCode() * 397) ^ _type.GetHashCode()); } }
public override int GetHashCode() { return(BitmapId.GetHashCode() ^ SymbolScale.GetHashCode() ^ SymbolOffset.GetHashCode() ^ SymbolRotation.GetHashCode() ^ UnitType.GetHashCode() ^ SymbolType.GetHashCode() ^ Opacity.GetHashCode() ^ base.GetHashCode()); }
public override int GetHashCode() { var hashCode = 589912188; hashCode = hashCode * -1521134295 + ID.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name); hashCode = hashCode * -1521134295 + MapUnitID.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <Map.Unit> .Default.GetHashCode(mapUnit); hashCode = hashCode * -1521134295 + BattleUnitID.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <Battle.Unit> .Default.GetHashCode(battleUnit); hashCode = hashCode * -1521134295 + Type.GetHashCode(); hashCode = hashCode * -1521134295 + MaxHP.GetHashCode(); hashCode = hashCode * -1521134295 + HP.GetHashCode(); hashCode = hashCode * -1521134295 + MaxMP.GetHashCode(); hashCode = hashCode * -1521134295 + MP.GetHashCode(); hashCode = hashCode * -1521134295 + Strength.GetHashCode(); hashCode = hashCode * -1521134295 + Fitness.GetHashCode(); hashCode = hashCode * -1521134295 + Agility.GetHashCode(); hashCode = hashCode * -1521134295 + Intelligence.GetHashCode(); hashCode = hashCode * -1521134295 + Lucky.GetHashCode(); hashCode = hashCode * -1521134295 + Attack.GetHashCode(); hashCode = hashCode * -1521134295 + MagicPower.GetHashCode(); hashCode = hashCode * -1521134295 + CriticalProbability.GetHashCode(); hashCode = hashCode * -1521134295 + Defence.GetHashCode(); hashCode = hashCode * -1521134295 + EvasionProbability.GetHashCode(); hashCode = hashCode * -1521134295 + BlockProbability.GetHashCode(); hashCode = hashCode * -1521134295 + WithstandProbability.GetHashCode(); hashCode = hashCode * -1521134295 + MagicResistance.GetHashCode(); hashCode = hashCode * -1521134295 + WeaponProficiency.GetHashCode(); return(hashCode); }
public override int GetHashCode() { var hashCode = -177567199; hashCode = hashCode * -1521134295 + Value.GetHashCode(); hashCode = hashCode * -1521134295 + Unit.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { var hashCode = (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (UnitPrice != null ? UnitPrice.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (UnitType != null ? UnitType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Discount != null ? Discount.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Quantity != null ? Quantity.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() => (Power.GetHashCode() * 397) ^ UnitType.GetHashCode();
/// <include file='doc\Unit.uex' path='docs/doc[@for="Unit.GetHashCode"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public override int GetHashCode() { return(type.GetHashCode() << 2 ^ value.GetHashCode()); }
public override int GetHashCode() { return(coordinates.GetHashCode() + type.GetHashCode()); }
public override int GetHashCode() { return((_type.GetHashCode() << 2) ^ _value.GetHashCode()); }
/// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public override int GetHashCode() { return(HashCodeCombiner.CombineHashCodes(type.GetHashCode(), value.GetHashCode())); }
public void UnitType_EqualityTest15() { UnitType expected = unitPro.UnitTypes ["Length"]; Assert.IsTrue(expected.GetHashCode() == expected.Name.GetHashCode()); }