/// <summary> /// Gets the hash code for the <see cref="CaretPosition"/>. /// </summary> /// <returns>The hash code.</returns> public override int GetHashCode() { return(_bufferPosition.GetHashCode() ^ _affinity.GetHashCode()); }