/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="Object"/>. /// </returns> public override int GetHashCode() { unchecked { int hashCode = ((XValue != null) ? XValue.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ((YValue != null) ? YValue.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = XValue.GetHashCode(); hashCode = (hashCode * 397) ^ YValue.GetHashCode(); hashCode = (hashCode * 397) ^ ZValue.GetHashCode(); hashCode = (hashCode * 397) ^ Timestamp.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { // ReSharper disable once NonReadonlyMemberInGetHashCode return(XValue.GetHashCode()); }
public override int GetHashCode() { return(XValue.GetHashCode()); }