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

GetHashCode() public method

Returns the hash code for this Dimension.
public GetHashCode ( ) : int
return int
        public override int GetHashCode() {
            int sum = width + height;
            return sum * (sum + 1)/2 + width;
        }