/// <summary>Returns the hash code for this instance.</summary> /// <returns>A 32-bit signed integer that is the hash code for this instance.</returns> public override int GetHashCode() { unchecked { return((position.GetHashCode() * 397) ^ size.GetHashCode()); } }
public override int GetHashCode() { unchecked { var hashCode = Owner; hashCode = (hashCode * 397) ^ Location.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Value; hashCode = (hashCode * 397) ^ Distance; return(hashCode); } }