Ignore:
Timestamp:
Mar 13, 2007, 11:55:49 AM (17 years ago)
Author:
イグトランス (egtra)
Message:

GetHashCodeを実装

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/Drawing/SizeF.ab

    r104 r166  
    4040    End Sub
    4141
    42     Function Operator + (sz As SizeF) As SizeF
     42    Function Operator +(sz As SizeF) As SizeF
    4343        Dim ret As SizeF(width + sz.width, height + sz.height)
    4444        Return ret
    4545    End Function
    4646
    47     Function Operator - (sz As SizeF) As SizeF
     47    Function Operator -(sz As SizeF) As SizeF
    4848        Dim ret As SizeF(width - sz.width, height - sz.height)
    4949        Return ret
    5050    End Function
    5151
    52     Function Operator == (sz As SizeF) As Boolean
     52    Function Operator ==(sz As SizeF) As Boolean
    5353        Return Equals(sz)
    5454    End Function
    5555
    56     Function Operator <> (sz As SizeF) As Boolean
     56    Function Operator <>(sz As SizeF) As Boolean
    5757        Return Not Equals(sz)
    5858    End Function
    5959
    60     Sub Operator = (ByRef sz As SizeF)
     60    Sub Operator =(ByRef sz As SizeF)
    6161        width = sz.width
    6262        height = sz.height
     
    7070        End If
    7171    End Function
     72
     73    Override Function GetHashCode() As Long
     74        Return VarPtr(GetDWord(width)) Xor _System_BSwap(VarPtr(GetDWord(height)))
    7275
    7376    Function IsEmpty() As Boolean
Note: See TracChangeset for help on using the changeset viewer.