public override int GetHashCode() { var hashCode = 745842380; hashCode = hashCode * -1521134295 + Id.GetHashCode(); hashCode = hashCode * -1521134295 + Slot.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Title); hashCode = hashCode * -1521134295 + Value.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Type); hashCode = hashCode * -1521134295 + Power.GetHashCode(); hashCode = hashCode * -1521134295 + Defense.GetHashCode(); hashCode = hashCode * -1521134295 + Vitality.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description); hashCode = hashCode * -1521134295 + Stackable.GetHashCode(); hashCode = hashCode * -1521134295 + Rarity.GetHashCode(); hashCode = hashCode * -1521134295 + Durability.GetHashCode(); hashCode = hashCode * -1521134295 + DurabilityCount.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Slug); hashCode = hashCode * -1521134295 + EqualityComparer <Sprite> .Default.GetHashCode(Sprite); return(hashCode); }
public override int GetHashCode() { return(((int)Id) ^ 5 + Name.GetHashCode() + UseFunc.GetHashCode() + Stackable.GetHashCode()); }