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

GetHashCodeを実装

File:
1 edited

Legend:

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

    r104 r166  
    113113    End Function
    114114
    115     Function Operator = (ByRef rc As RectangleF)
     115    Function Operator =(ByRef rc As RectangleF)
    116116        With rc
    117117            x = .x
     
    122122    End Function
    123123
    124     Function Operator == (ByRef rc As RectangleF)
     124    Function Operator ==(ByRef rc As RectangleF)
    125125        Return Equals(rc)
    126126    End Function
    127127
    128     Function Operator <> (ByRef rc As RectangleF)
     128    Function Operator <>(ByRef rc As RectangleF)
    129129        Return Not Equals(rc)
    130130    End Function
     
    136136            Equals = _System_FALSE
    137137        End If
     138    End Function
     139
     140    Override Function GetHashCode() As Long
     141        Return GetDWord(VarPtr(x)) Xor _System_BSwap(GetDWord(VarPtr(y))) Xor GetDWord(VarPtr(width)) Xor _System_BSwap(GetDWord(VarPtr(height)))
    138142    End Function
    139143
Note: See TracChangeset for help on using the changeset viewer.