public void GetHashCodeTest () { PointF pt = new PointF (1.1F, 9.9F); Assert.AreEqual (pt.GetHashCode (), pt11_99.GetHashCode (), "GHC#1"); }
/// <summary> /// Returns a hash code for this instance of Kanji.DesktopApp.LogicLayer.Point. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { Drawing.PointF pt = new Drawing.PointF((float)X, (float)Y); return(pt.GetHashCode() + Time.GetHashCode()); }