public override bool Equals(object obj) { //Check for null and compare run-time types. if (obj == null || GetType() != obj.GetType()) { return false; } HotbarSkill p = (HotbarSkill)obj; return Power == p.Power && RuneIndex == p.RuneIndex; }