public override int GetHashCode() { return base.GetHashCode() ^ XPosition.GetHashCode(); } #endregion