public override int GetHashCode() { unchecked { int hashCode = Value.GetHashCode(); hashCode = (hashCode * 397) ^ Relative.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Skill; return(hashCode); } }
public override int GetHashCode() { unchecked { var hash = (int)Skill; hash = (hash * 397) ^ Relative.GetHashCode(); hash = (hash * 397) ^ Value.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Reference != null) { hashCode = hashCode * 59 + Reference.GetHashCode(); } if (Position != null) { hashCode = hashCode * 59 + Position.GetHashCode(); } if (Relative != null) { hashCode = hashCode * 59 + Relative.GetHashCode(); } if (ValueFormat != null) { hashCode = hashCode * 59 + ValueFormat.GetHashCode(); } if (Increasing != null) { hashCode = hashCode * 59 + Increasing.GetHashCode(); } if (Decreasing != null) { hashCode = hashCode * 59 + Decreasing.GetHashCode(); } if (Font != null) { hashCode = hashCode * 59 + Font.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { return(Relative.GetHashCode()); }