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/CharacterRange.ab

    r11 r166  
    4242    End Sub
    4343
    44     Function Operator == (c As CharacterRange)
     44    Function Operator ==(c As CharacterRange)
    4545        Return Equals(c)
    4646    End Function
    4747
    48     Function Operator <> (c As CharacterRange)
     48    Function Operator <>(c As CharacterRange)
    4949        Return Not Equals(c)
    5050    End Function
     
    5252    Function Equals(c As CharacterRange)
    5353        Return first = c.first And length = c.length
     54    End Function
     55
     56    Override Function GetHashCode() As Long
     57        Return first Xor length
    5458    End Function
    5559
Note: See TracChangeset for help on using the changeset viewer.