System.Drawing.Point.GetHashCode C# (CSharp) Method

GetHashCode() public method

Returns a hash code.

public GetHashCode ( ) : int
return int
        public override int GetHashCode() => HashHelpers.Combine(X, Y);

Usage Example

Exemplo n.º 1
0
 /// <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.Point pt = new Drawing.Point((int)Math.Floor(X), (int)Math.Floor(Y));
     return(pt.GetHashCode() + Time.GetHashCode());
 }
All Usage Examples Of System.Drawing.Point::GetHashCode