Ignore:
Timestamp:
Sep 26, 2008, 8:47:44 PM (16 years ago)
Author:
イグトランス (egtra)
Message:

#202 Compare/CompareOrdinal完了

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/System/Object.ab

    r449 r634  
    1313        ' 2つのオブジェクトが等しいかどうかを判断する
    1414        Virtual Function Equals( object As Object ) As Boolean
    15             If ObjPtr(This) = ObjPtr(object) Then
    16     '       If This.GetHashCode() = object.GetHashCode() Then
    17                 Return True
    18             Else
    19                 Return False
    20             End If
     15            Return ObjPtr(This) = ObjPtr(object)
    2116        End Function
    2217       
    2318        Static Function Equals( objectA As Object, objectB As Object ) As Boolean
    24             If ObjPtr(objectA) = NULL /*objectA = Nothing*/ Then
    25                 Return ObjPtr(objectB) = NULL 'objectB = Nothing
     19            If ActiveBasic.IsNothing(objectA) Then
     20                Return ActiveBasic.IsNothing(objectB)
    2621            Else
    2722                Return objectA.Equals(objectB)
Note: See TracChangeset for help on using the changeset viewer.