/// <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() { // ReSharper disable NonReadonlyFieldInGetHashCode unchecked { int hashCode = Start.GetHashCode(); hashCode = (hashCode * 397) ^ End.GetHashCode(); hashCode = (hashCode * 397) ^ Data.GetHashCode(); hashCode = (hashCode * 397) ^ Color.GetHashCode(); hashCode = (hashCode * 397) ^ Dash.GetHashCode(); return(hashCode); } // ReSharper restore NonReadonlyFieldInGetHashCode }
/// <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() { // ReSharper disable NonReadonlyFieldInGetHashCode return(Position.GetHashCode()); // ReSharper restore NonReadonlyFieldInGetHashCode }